Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident:
Trying to work towards an enrichment via a lookup table. However I cannot seem to get a pipeline rule to work at all.
I have a working system, with a stream, and extractors running on the messages to parse the messages into fields… These are syslog-like messages.
2. Describe your environment:
-
OS Information:
Ubuntu 22.04 -
Package Version:
Graylog 5.0.8+4c22532 on sparc-log01 (Eclipse Adoptium 17.0.6 on Linux 5.4.0-150-generic) -
Service logs, configurations, and environment variables:
3. What steps have you already taken to try and solve the problem?
I followed the documentation to create a lookup table, and connect / create a pipeline and a rule .
I can use the test in the lookup table and get desired results.
Basically what I am trying to do, is take a field, field_a that is already present in a log message (created by an extractor), and use it as the key for a lookup table, to then set a new field in the log that contains associated data (the value from the key->value lookup table query).
However I cannot even get the pipeline rule to work… I created the following rule as a test:
rule “Add MemberSEP”
when
1
then
set_field(“membersep”, “unset”);
end
This does not work. I even tried using the debug() function to see if I could get more info but could not get any log messages into the server log.
The real rule would look like this:
rule “Add MemberSEP”
when
has_field(“calix_severity”)
then
** lookup code to add new field with value **
end
I would think the test rule should create the new field in the log message and set it to a value of “unset”
I am stumped,… have scoured the forums and web tyring to find a clue…
4. How can the community help?
Any advice or direction is appreciated.
Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]