# Templates and Rules Exchange

**URL:** https://community.graylog.org/c/templates-and-rules-exchange/16.md?page=1

[Latest](https://community.graylog.org/latest.md) · [Categories](https://community.graylog.org/categories.md) · [Tags](https://community.graylog.org/tags.md)

**Page:** 2

---

## [Vcenter/ESxi Log Source - Build pineline rule to detect attack based on blacklist URL](https://community.graylog.org/t/vcenter-esxi-log-source-build-pineline-rule-to-detect-attack-based-on-blacklist-url/27272)

<div class="topic-metadata">

**Author:** [@taibui](https://community.graylog.org/u/taibui)\
**Replies:** 0\
**Last updated:** [January 13, 2023, 10:07am UTC](https://community.graylog.org/t/vcenter-esxi-log-source-build-pineline-rule-to-detect-attack-based-on-blacklist-url/27272 "2023-01-13T10:07:37Z")

</div>

We collect all blacklist URL which can use to attack vcenter/esxi server from remote address. If we push logs to a centralized system like Graylog, we can immediately detect attacks on the system. Link github: Team S…

---

## [Parse if MAC address is random](https://community.graylog.org/t/parse-if-mac-address-is-random/27166)

<div class="topic-metadata">

**Author:** [@giveen](https://community.graylog.org/u/giveen)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 6:30pm UTC](https://community.graylog.org/t/parse-if-mac-address-is-random/27166 "2023-01-04T18:30:06Z")

</div>

rule "ParseMACForRandomization" when has\_field("source\_mac") AND (contains("2", substring(to\_string($message.source\_mac),1,2),true) OR contains("6", substring(to\_string($message.source\_mac),1,2),true) OR contains("a", …

---

## [Correct parsing of list/array values, e.g. from python](https://community.graylog.org/t/correct-parsing-of-list-array-values-e-g-from-python/26654)

<div class="topic-metadata">

**Author:** [@tbe](https://community.graylog.org/u/tbe)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 10:55pm UTC](https://community.graylog.org/t/correct-parsing-of-list-array-values-e-g-from-python/26654 "2022-11-24T22:55:22Z")

</div>

Hello there, I made a neat little discovery working with arrays (or lists, to stay in python wording). Hoping it’s not cold coffee for most of you, I decided to share it. More than once, I had problems correctly search…

---

## [End of Life Announcements and Security Bulletin](https://community.graylog.org/t/end-of-life-announcements-and-security-bulletin/26597)

<div class="topic-metadata">

**Author:** [@mizzic](https://community.graylog.org/u/mizzic)\
**Replies:** 6\
**Last updated:** [November 22, 2022, 2:16pm UTC](https://community.graylog.org/t/end-of-life-announcements-and-security-bulletin/26597 "2022-11-22T14:16:30Z")

</div>

Hi All, Where can I find end of life announcements and security bulletins (regarding security patches) for Graylog? Thanks

---

## [Widget Querying (aggregation) with Python](https://community.graylog.org/t/widget-querying-aggregation-with-python/25924)

<div class="topic-metadata">

**Author:** [@edwardl](https://community.graylog.org/u/edwardl)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 11:20pm UTC](https://community.graylog.org/t/widget-querying-aggregation-with-python/25924 "2022-09-26T23:20:33Z")

</div>

This thread outlines how to query aggregated Graylog data with Python \[the spoon-feeding I was hoping to find :slight\_smile: \]. There may be better methods, but my script completes in a few seconds and gets me everythin…

---

## [Converting the OID'd for streams Into Human Readable](https://community.graylog.org/t/converting-the-oidd-for-streams-into-human-readable/25480)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 4\
**Last updated:** [September 5, 2022, 9:33pm UTC](https://community.graylog.org/t/converting-the-oidd-for-streams-into-human-readable/25480 "2022-09-05T21:33:46Z")

</div>

In my Rest Access file there are stream OID’s, to display them on a Widget I needed to created a lookup table and Attached it to a pipeline. Example: Acquire the OID’s from MongoDb: \> use graylog switched to db graylo…

---

## [Pipeline Rules, order of execution (2022/v4.3 update)](https://community.graylog.org/t/pipeline-rules-order-of-execution-2022-v4-3-update/25506)

<div class="topic-metadata">

**Author:** [@nisow95612](https://community.graylog.org/u/nisow95612)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 3:52pm UTC](https://community.graylog.org/t/pipeline-rules-order-of-execution-2022-v4-3-update/25506 "2022-08-30T15:52:43Z")

</div>

This is an update to Rules, order of execution and 2nd half of Rename index set backing "All messages" stream? - #10 by tmacgbay So far the answers are: All attached pipelines run…

---

## [Graylog in a Nutshell (Diagram)](https://community.graylog.org/t/graylog-in-a-nutshell-diagram/24217)

<div class="topic-metadata">

**Author:** [@WavedirectTel](https://community.graylog.org/u/WavedirectTel)\
**Replies:** 24\
**Last updated:** [August 30, 2022, 2:55pm UTC](https://community.graylog.org/t/graylog-in-a-nutshell-diagram/24217 "2022-08-30T14:55:20Z")

</div>

I just needed to clarify the terminology and basic structure of Gralog so I knew where to go to configure things. I find tools like these I set up do all the work and just use it periodically and forget when I come back…

---

## [Replacing UID with Username](https://community.graylog.org/t/replacing-uid-with-username/25479)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [August 26, 2022, 10:02pm UTC](https://community.graylog.org/t/replacing-uid-with-username/25479 "2022-08-26T22:02:26Z")

</div>

Thanks @tmacgbay this worked very good, had to share :smiley: rule "Graylog Web Access User Convert" when contains(to\_string($message.message),"UID=") then let robin = to\_string($message.message); le…

---

## [Converting NodeID to FQDN](https://community.graylog.org/t/converting-nodeid-to-fqdn/25478)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [August 26, 2022, 9:56pm UTC](https://community.graylog.org/t/converting-nodeid-to-fqdn/25478 "2022-08-26T21:56:58Z")

</div>

After configuring Graylog RestAccessLog rule "Attach NodID to Messages" when has\_field("gl2\_source\_node") AND contains(to\_string($message.gl2\_source\_node), "0e68c48b-29cc-4085-a2ca-bc700fcf82da") then set\_field…

---

## [Nginx Config Examples](https://community.graylog.org/t/nginx-config-examples/20738)

<div class="topic-metadata">

**Author:** [@aaronsachs](https://community.graylog.org/u/aaronsachs)\
**Replies:** 5\
**Last updated:** [July 29, 2022, 5:18pm UTC](https://community.graylog.org/t/nginx-config-examples/20738 "2022-07-29T17:18:07Z")

</div>

For those of you who use Nginx as a reverse proxy or load balancer, you may find these configuration files useful: Here’s the example main nginx config I use for load balancing tcp/udp connections: nginx.confuser ngin…

---

## [Convert Milliseconds to Minutes](https://community.graylog.org/t/convert-milliseconds-to-minutes/25003)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 11:44pm UTC](https://community.graylog.org/t/convert-milliseconds-to-minutes/25003 "2022-07-26T23:44:26Z")

</div>

I’m posting @d2freak82 pipeline /w GROK. "VPN sessiontime to min" when has\_field("session\_time") then let session\_duration = to\_string($message.session\_time); let vpn\_duration = grok("%{UNIFIMS:UNWW…

---

## [Custom Mappings and Historical Correction](https://community.graylog.org/t/custom-mappings-and-historical-correction/21130)

<div class="topic-metadata">

**Author:** [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Replies:** 4\
**Last updated:** [July 12, 2022, 2:25pm UTC](https://community.graylog.org/t/custom-mappings-and-historical-correction/21130 "2022-07-12T14:25:08Z")

</div>

I posted this a while ago but it is buried in the forums - Here it is in an easier to find place: One mans journey on correcting a elasticsearch datatype for Graylog FYE (For Your Edification): Before you read any fur…

---

## [Which API query to use to count logs](https://community.graylog.org/t/which-api-query-to-use-to-count-logs/24495)

<div class="topic-metadata">

**Author:** [@UserIT529](https://community.graylog.org/u/UserIT529)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 9:15pm UTC](https://community.graylog.org/t/which-api-query-to-use-to-count-logs/24495 "2022-06-28T21:15:55Z")

</div>

Hello, everyone, I haven't been using Graylog for longPreformatted text. Now I have it set up and can monitor four servers. I would now like to use the API to query whether a server has written log files in the last few …

---

## [PaloAlto L7 Inspection breaking communication between forwarder and server](https://community.graylog.org/t/paloalto-l7-inspection-breaking-communication-between-forwarder-and-server/24245)

<div class="topic-metadata">

**Author:** [@mkurz](https://community.graylog.org/u/mkurz)\
**Replies:** 1\
**Last updated:** [June 10, 2022, 10:32pm UTC](https://community.graylog.org/t/paloalto-l7-inspection-breaking-communication-between-forwarder-and-server/24245 "2022-06-10T22:32:40Z")

</div>

Hi @all, for your information. Last week we had a total communication breakdown between a forwarder located in a DMZ an d a graylog server. Communication suddenly stopped, no obvious changes had been applied to the sys…

---

## [Elasticsearch Node is in Red Status](https://community.graylog.org/t/elasticsearch-node-is-in-red-status/23313)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [April 5, 2022, 1:33am UTC](https://community.graylog.org/t/elasticsearch-node-is-in-red-status/23313 "2022-04-05T01:33:50Z")

</div>

All, An issue occurred recently, and I want to show how I was able to troubleshoot and resolve this. Reminder, this was my Lab Graylog server, so I assume this was a user error on my part :thinking: About a week ago I …

---

## [Windows EventID 4625 Pipeline](https://community.graylog.org/t/windows-eventid-4625-pipeline/23145)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 12:56am UTC](https://community.graylog.org/t/windows-eventid-4625-pipeline/23145 "2022-03-24T00:56:18Z")

</div>

@tmacgbay Thanks :smiley: I had to save it. I feel a ripple in the force, I might need this later. rule "bad\_password\_rule" when // Bad Password to\_string($message.winlog\_event\_id) == "4625" then …

---

## [Remove matching data from Elasticsearch via curl](https://community.graylog.org/t/remove-matching-data-from-elasticsearch-via-curl/23090)

<div class="topic-metadata">

**Author:** [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 3:40pm UTC](https://community.graylog.org/t/remove-matching-data-from-elasticsearch-via-curl/23090 "2022-03-18T15:40:40Z")

</div>

While creating a new log to watch I ended up with a lot of data that I didn’t want and then as I was mucking around with it, I duplicated it all but with the revised data (less but better named fields). Grrr. I was loo…

---

## [Nxlog Correcting Timestamp Field](https://community.graylog.org/t/nxlog-correcting-timestamp-field/22976)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [March 10, 2022, 12:20am UTC](https://community.graylog.org/t/nxlog-correcting-timestamp-field/22976 "2022-03-10T00:20:22Z")

</div>

All, Past week we ran into an issue of timestamp field was incorrect. Yes, I looked at pipelines, extractors, GitHub/Forum, and there is a lot of solution. Took a couple days to look through everything that would pertai…

---

## [Windows Updates Status](https://community.graylog.org/t/windows-updates-status/22698)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 3:36am UTC](https://community.graylog.org/t/windows-updates-status/22698 "2022-02-19T03:36:12Z")

</div>

All, This is basically for users with large environments. One of the main issues with 1000’s of Physical servers and Virtual machine in environment is not only the repair/s or bugs in the software but “Windows Updates”.…

---

## [Send email alert by script deriving recipient from message field](https://community.graylog.org/t/send-email-alert-by-script-deriving-recipient-from-message-field/22438)

<div class="topic-metadata">

**Author:** [@Elix](https://community.graylog.org/u/Elix)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 11:08am UTC](https://community.graylog.org/t/send-email-alert-by-script-deriving-recipient-from-message-field/22438 "2022-02-14T11:08:11Z")

</div>

Script Arguments: --${event.fields.Category} --${event.fields.ControllerID} --${event.fields.Description} --${event.fields.Event} --${event.fields.EventID} --${event.fields.Severity} --${event.fields.source} --${event.f…

---

## [Grafana Plugin for Mysql](https://community.graylog.org/t/grafana-plugin-for-mysql/22562)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [February 4, 2022, 5:10am UTC](https://community.graylog.org/t/grafana-plugin-for-mysql/22562 "2022-02-04T05:10:33Z")

</div>

All, So I enable Prometheus in Graylog to show quick reference of metrics on my Graylog server. Going through the forum I noticed a lot more members were also using Grafana Labs to display this on a dashboard. Using …

---

## [NXLog Sidecar Heartbeat](https://community.graylog.org/t/nxlog-sidecar-heartbeat/22526)

<div class="topic-metadata">

**Author:** [@Elix](https://community.graylog.org/u/Elix)\
**Replies:** 3\
**Last updated:** [February 2, 2022, 10:21pm UTC](https://community.graylog.org/t/nxlog-sidecar-heartbeat/22526 "2022-02-02T22:21:36Z")

</div>

Dears, I’m using some NXLog collectors deployed by Graylog Sidecar to collect and send messages to my Graylog server. In order to be alerted in case of a collector goes down, I’ve configured the NXLog instances to perio…

---

## [Redirect specific source ip’s](https://community.graylog.org/t/redirect-specific-source-ip-s/22449)

<div class="topic-metadata">

**Author:** [@hollowdew](https://community.graylog.org/u/hollowdew)\
**Replies:** 0\
**Last updated:** [January 24, 2022, 8:19am UTC](https://community.graylog.org/t/redirect-specific-source-ip-s/22449 "2022-01-24T08:19:56Z")

</div>

Hello guys, in some network devices (e.g. cisco) you can’t define a other destination logging port than 514, but you can map it to another port to use seperate input’s. E.g. if you want to listen to port 514 and redire…

---

## [ALERT template - HTML](https://community.graylog.org/t/alert-template-html/22156)

<div class="topic-metadata">

**Author:** [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Replies:** 2\
**Last updated:** [January 21, 2022, 12:46pm UTC](https://community.graylog.org/t/alert-template-html/22156 "2022-01-21T12:46:33Z")

</div>

@gsmith posted an html based alert a while back so I spent some time modifying it. In the block below there are some if statements related to me changing over to standardized field names so I set the script up to handle…

---

## [Adding Stream URL to Notification Template](https://community.graylog.org/t/adding-stream-url-to-notification-template/21543)

<div class="topic-metadata">

**Author:** [@gsmith](https://community.graylog.org/u/gsmith)\
**Replies:** 0\
**Last updated:** [October 22, 2021, 2:29am UTC](https://community.graylog.org/t/adding-stream-url-to-notification-template/21543 "2021-10-22T02:29:40Z")

</div>

I didn’t realize the need for a URL in my notification until receiving a large amounts of alert emails. Even thou I did make configurations to the Notification template and can find who/what/and where something happe…

---

## [Graylog Information Model Schema](https://community.graylog.org/t/graylog-information-model-schema/21540)

<div class="topic-metadata">

**Author:** [@dscryber](https://community.graylog.org/u/dscryber)\
**Replies:** 0\
**Last updated:** [October 21, 2021, 8:54pm UTC](https://community.graylog.org/t/graylog-information-model-schema/21540 "2021-10-21T20:54:41Z")

</div>

This guide is a reference for the schema used in Graylog Illuminate. We will keep this updates as changes are made, but if you feel a change should be here, please open a GitHub issue HERE. How To Use this Guide Welco…

---

## [On start: field standards and normalization](https://community.graylog.org/t/on-start-field-standards-and-normalization/21244)

<div class="topic-metadata">

**Author:** [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 12:52pm UTC](https://community.graylog.org/t/on-start-field-standards-and-normalization/21244 "2021-09-20T12:52:04Z")

</div>

It will help immensely if you start from the beginning creating standard/normalized fields. Below are some simple ideas but you can find a more comprehensive schema built by Graylog here: Graylog (GIM) Schema NOTE: co…

---

## [Graylog Maintained Pipeline Examples](https://community.graylog.org/t/graylog-maintained-pipeline-examples/20793)

<div class="topic-metadata">

**Author:** [@aaronsachs](https://community.graylog.org/u/aaronsachs)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 10:32pm UTC](https://community.graylog.org/t/graylog-maintained-pipeline-examples/20793 "2021-08-05T22:32:18Z")

</div>

Howdy, all :wave: One of our community members @gsmith recently pointed another community member to a repo that Graylog maintains and is full of basic pipeline examples. I’ve personally used this repo quite often when I…

---

## [Find and Replace - Winlogbeat](https://community.graylog.org/t/find-and-replace-winlogbeat/21014)

<div class="topic-metadata">

**Author:** [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Replies:** 0\
**Last updated:** [August 27, 2021, 2:51pm UTC](https://community.graylog.org/t/find-and-replace-winlogbeat/21014 "2021-08-27T14:51:28Z")

</div>

After upgrading my sidecars and finding out that fieldnames have changed \<insert winlog\_ here\> I was lamenting that browsers don’t have a find/replace feature for editing. It was my pleasant surprise that ctrl-F while i…

[Previous page](https://community.graylog.org/c/templates-and-rules-exchange/16.md)

[Next page](https://community.graylog.org/c/templates-and-rules-exchange/16.md?page=2)
