# Pipeline Rules

**URL:** https://community.graylog.org/c/templates-and-rules-exchange/pipeline-rules/19.md

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

---

## [About the Pipeline Rules category](https://community.graylog.org/t/about-the-pipeline-rules-category/20665)

<div class="topic-metadata">

**Author:** [@dscryber](https://community.graylog.org/u/dscryber)\
**Replies:** 0

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following paragraphs for a longer d…

---

## [Multivalue pipeline rule not working](https://community.graylog.org/t/multivalue-pipeline-rule-not-working/37710)

<div class="topic-metadata">

**Author:** [@JulianDrums](https://community.graylog.org/u/JulianDrums)\
**Replies:** 4\
**Last updated:** [October 21, 2026, 6:05pm UTC](https://community.graylog.org/t/multivalue-pipeline-rule-not-working/37710 "2026-10-21T18:05:45Z")

</div>

Graylog pipeline rule: Lookup multi-value fields not populating I currently have the following pipeline rule which does a multi field lookup: rule "Network VPN Enrich" when contains( value: to\_string($message."Network\_…

---

## [Calix E7 OLT Syslog Pipeline Rule](https://community.graylog.org/t/calix-e7-olt-syslog-pipeline-rule/37046)

<div class="topic-metadata">

**Author:** [@WavedirectTel](https://community.graylog.org/u/WavedirectTel)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 2:31pm UTC](https://community.graylog.org/t/calix-e7-olt-syslog-pipeline-rule/37046 "2026-03-03T14:31:30Z")

</div>

This will help strip a syslog from an E7 OLT to get the basics for troubleshooting ONT issues. rule "calix\_e7\_notfmgrd\_parse" when has\_field("message") && contains(to\_string($message.message), "notfmgrd\[") && cont…

---

## [Pipeline based decorator rules](https://community.graylog.org/t/pipeline-based-decorator-rules/37020)

<div class="topic-metadata">

**Author:** [@loggingone](https://community.graylog.org/u/loggingone)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 11:58pm UTC](https://community.graylog.org/t/pipeline-based-decorator-rules/37020 "2026-02-24T23:58:39Z")

</div>

Have messages with extremely long lines. Figured out the pipeline rule code (for a decorator) that will correctly break the line down into appropriate components. Currently, can do “\\n” and can see that in the decorate…

---

## [Trying to use Pipelines to extract falues from a field](https://community.graylog.org/t/trying-to-use-pipelines-to-extract-falues-from-a-field/36715)

<div class="topic-metadata">

**Author:** [@dannymccaslin](https://community.graylog.org/u/dannymccaslin)\
**Replies:** 2\
**Last updated:** [December 12, 2025, 8:21pm UTC](https://community.graylog.org/t/trying-to-use-pipelines-to-extract-falues-from-a-field/36715 "2025-12-12T20:21:57Z")

</div>

I’m trying to extract some data from a particular field using Pipelines and while I think I understand it theoretically, I can’t seem to wrap my head around making it happen. We have a Palo Alto firewall with a VPN. We …

---

## [Grok works in test with sample data, unable to utilize in Pipeline rule](https://community.graylog.org/t/grok-works-in-test-with-sample-data-unable-to-utilize-in-pipeline-rule/36219)

<div class="topic-metadata">

**Author:** [@bralanak](https://community.graylog.org/u/bralanak)\
**Replies:** 1\
**Last updated:** [August 14, 2025, 9:26pm UTC](https://community.graylog.org/t/grok-works-in-test-with-sample-data-unable-to-utilize-in-pipeline-rule/36219 "2025-08-14T21:26:07Z")

</div>

Trying to wrap my head around this, not familiar with Graylog, but hoping to get it to work someday. I am utilizing NGINX Reverse Proxy Manager (NPM) on my network. I am successfully sending data to graylog. However, I g…

---

## [Sonicwall Pipeline Rules](https://community.graylog.org/t/sonicwall-pipeline-rules/27587)

<div class="topic-metadata">

**Author:** [@faen](https://community.graylog.org/u/faen)\
**Replies:** 19\
**Last updated:** [July 3, 2025, 7:28pm UTC](https://community.graylog.org/t/sonicwall-pipeline-rules/27587 "2025-07-03T19:28:32Z")

</div>

Sonicwall: TZ470 running SonicOS 7.01 Input type: Sylog/UDP Rule summary: Stage 0: Primary rule uses the “key\_value” function to parse the delimited message using the default delimiter of space. Stage 1: Four rules t…

---

## [Pipeline output printing in array instead of string](https://community.graylog.org/t/pipeline-output-printing-in-array-instead-of-string/33565)

<div class="topic-metadata">

**Author:** [@venki](https://community.graylog.org/u/venki)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 1:31pm UTC](https://community.graylog.org/t/pipeline-output-printing-in-array-instead-of-string/33565 "2024-09-18T13:31:22Z")

</div>

I have the below pipeline processor rule that allows me to extract connectionId, ns and type from the mongodb log(json format), but unfortunately the extracted output is displaying as array instead of string. rule “Extr…

---

## [Convert base16 encoded key in readable text](https://community.graylog.org/t/convert-base16-encoded-key-in-readable-text/33248)

<div class="topic-metadata">

**Author:** [@ulo](https://community.graylog.org/u/ulo)\
**Replies:** 0\
**Last updated:** [August 13, 2024, 11:56am UTC](https://community.graylog.org/t/convert-base16-encoded-key-in-readable-text/33248 "2024-08-13T11:56:53Z")

</div>

Hello, i tried to convert base16 encoded key from an auditd messages into readable format with pipeline rules. for example: key=encoded\_string pipeline rule new\_key=decoded\_string I already discoverd the “base16\_dec…

---

## [Masking Sensitive Data on Graylog Pipeline Rules Script](https://community.graylog.org/t/masking-sensitive-data-on-graylog-pipeline-rules-script/33015)

<div class="topic-metadata">

**Author:** [@kctan](https://community.graylog.org/u/kctan)\
**Replies:** 1\
**Last updated:** [July 18, 2024, 3:45am UTC](https://community.graylog.org/t/masking-sensitive-data-on-graylog-pipeline-rules-script/33015 "2024-07-18T03:45:20Z")

</div>

Hello there Graylog Community, I want to mask the username but it does not work and only return the original message response. I have this Rule source: rule "mask\_sensitive\_fields" when has\_field("message") then le…

---

## [Json nested and lsit](https://community.graylog.org/t/json-nested-and-lsit/30637)

<div class="topic-metadata">

**Author:** [@flep](https://community.graylog.org/u/flep)\
**Replies:** 9\
**Last updated:** [April 15, 2024, 10:42pm UTC](https://community.graylog.org/t/json-nested-and-lsit/30637 "2024-04-15T22:42:25Z")

</div>

Hello, I try to format my json log, but so far without success. My goal is to be able to parse the nested field like : httpRequest, ruleListGroup My current setup is quite easy, I defined a JSON extractor for an raw-…

---

## [Problems with greynoise pipeline](https://community.graylog.org/t/problems-with-greynoise-pipeline/31958)

<div class="topic-metadata">

**Author:** [@martinhoCMA](https://community.graylog.org/u/martinhoCMA)\
**Replies:** 2\
**Last updated:** [March 27, 2024, 3:11pm UTC](https://community.graylog.org/t/problems-with-greynoise-pipeline/31958 "2024-03-27T15:11:29Z")

</div>

Hey everyone, I’ve been trying to put to work a pipeline that integrates my fortigate logs (that come to graylog via syslog) with Greynoise, but unfortunetly it’s not working. It does not make any enrichment to my data. …

---

## [Struggling to use parse\_json()](https://community.graylog.org/t/struggling-to-use-parse-json/31905)

<div class="topic-metadata">

**Author:** [@mgfranky](https://community.graylog.org/u/mgfranky)\
**Replies:** 1\
**Last updated:** [March 25, 2024, 7:34am UTC](https://community.graylog.org/t/struggling-to-use-parse-json/31905 "2024-03-25T07:34:23Z")

</div>

Hi, I’m using Graylog 5.2.5. I’m trying to parse a simple Json string. I’m using the “Source Code Editor” Here is my Rule Source: rule “test” when has\_field(“message”) then let json = parse\_json(to\_string($message…

---

## [Strange problem with pipeline](https://community.graylog.org/t/strange-problem-with-pipeline/31689)

<div class="topic-metadata">

**Author:** [@Demiurg](https://community.graylog.org/u/Demiurg)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 2:29pm UTC](https://community.graylog.org/t/strange-problem-with-pipeline/31689 "2024-03-11T14:29:15Z")

</div>

Hi. My Graylog server (5.2.4) routes logs from sidecar (audibeat) to two streams - streams A and B (by streams rules) and its ok. Stream A should keep oryginal log but stream B should keep only few fields. So I create…

---

## [Try to remove brackets from string](https://community.graylog.org/t/try-to-remove-brackets-from-string/30722)

<div class="topic-metadata">

**Author:** [@Chris\_1](https://community.graylog.org/u/Chris_1)\
**Replies:** 5\
**Last updated:** [November 21, 2023, 10:16pm UTC](https://community.graylog.org/t/try-to-remove-brackets-from-string/30722 "2023-11-21T22:16:15Z")

</div>

Hello, from the example string below, im trying tor replace the brackets and the number between these bracktes with a dot (.). I used a pipline rule for this. example String: “(10)nexusrules(10)officeapps(4)live(3)com(…

---

## [Incorrectly parsed fileds](https://community.graylog.org/t/incorrectly-parsed-fileds/30257)

<div class="topic-metadata">

**Author:** [@dandu](https://community.graylog.org/u/dandu)\
**Replies:** 1\
**Last updated:** [October 6, 2023, 4:17am UTC](https://community.graylog.org/t/incorrectly-parsed-fileds/30257 "2023-10-06T04:17:17Z")

</div>

What options do I have when Graylog parses message fields incorectly? For example here’s a message from a FortiGate firewall: date=2023-10-05 time=10:32:59 devname=“hostname” logid=“0317013312” type=“utm” subtype=“webf…

---

## [Setup a pipeline rules for certain hours 5.1.4](https://community.graylog.org/t/setup-a-pipeline-rules-for-certain-hours-5-1-4/30080)

<div class="topic-metadata">

**Author:** [@aliraxa](https://community.graylog.org/u/aliraxa)\
**Replies:** 6\
**Last updated:** [September 14, 2023, 7:53am UTC](https://community.graylog.org/t/setup-a-pipeline-rules-for-certain-hours-5-1-4/30080 "2023-09-14T07:53:14Z")

</div>

Hi, @gsmith I have created a rule in pipeline for certain hours means when (off hours), I have share the rule as well but it didn’t work for me. My graylog version is 5.1.4 rule “Between 6 PM and 6 AM” when ( to\_long…

---

## [Problem understanding the use of is\_json function](https://community.graylog.org/t/problem-understanding-the-use-of-is-json-function/28817)

<div class="topic-metadata">

**Author:** [@hasturo](https://community.graylog.org/u/hasturo)\
**Replies:** 5\
**Last updated:** [June 1, 2023, 9:18pm UTC](https://community.graylog.org/t/problem-understanding-the-use-of-is-json-function/28817 "2023-06-01T21:18:33Z")

</div>

Hi Guys, im trying to understand if can utilize “is\_json” for differ between Json and not Json Content in Message field in Pipeline Rules. From my understanding i could use something like this: rule “Test for JSON” w…

---

## [Add a comma between fileds in pipeline rule](https://community.graylog.org/t/add-a-comma-between-fileds-in-pipeline-rule/28325)

<div class="topic-metadata">

**Author:** [@mk1762](https://community.graylog.org/u/mk1762)\
**Replies:** 2\
**Last updated:** [April 3, 2023, 11:57am UTC](https://community.graylog.org/t/add-a-comma-between-fileds-in-pipeline-rule/28325 "2023-04-03T11:57:33Z")

</div>

Hi, I have this simple rule, I would to add a comma between these two fields (cs7\_latitude and cs8\_longitude) but it doesn’t work, there’s an escape char to use or other methods ? rule “GPS” when has\_field(“cs7\_latit…

---

## [Anonymize IPv4 address](https://community.graylog.org/t/anonymize-ipv4-address/20685)

<div class="topic-metadata">

**Author:** [@shoothub](https://community.graylog.org/u/shoothub)\
**Replies:** 3\
**Last updated:** [January 28, 2023, 12:55am UTC](https://community.graylog.org/t/anonymize-ipv4-address/20685 "2023-01-28T00:55:11Z")

</div>

Sometimes you need to anonymize IPv4 address. There are lot of solutions, one simple is to replace last octet with some text. This little snippet uses this approach to replace all ipv4 address in message: rule "Anonymiz…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [Convert seconds to something readable](https://community.graylog.org/t/convert-seconds-to-something-readable/20700)

<div class="topic-metadata">

**Author:** [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 12:04pm UTC](https://community.graylog.org/t/convert-seconds-to-something-readable/20700 "2021-07-30T12:04:30Z")

</div>

Our VPN reported total connect time in seconds but we needed something understandable for reporting purposes. @shoothub handily put it together for me in a post back in 2019: input: login\_ duration: 5151 output: …

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