Hi,
I am new to Graylog and trying to use data lookup table and data adapter to change log level value to informative string inside pipeline:
CSV:
Level;“SEVERITY”
0;“Emergency”
1;“Alert”
2;“Critical”
3;“Error”
4;“Warning”
5;“Notice”
6;“Informational”
7;“Debug”
I have created the pipeline rule as:
rule “Level lookup with Level Category”
when
has_field(“level”)
then
let update_source = lookup_value(“rfc_5424_log_level”,$message.level);
set_field(“level”, update_source);
end
I am confused now, where exactly and what stage this rule to be used. I have tried this rule at stage 0 with other rules, adding in all the pipeline stages and at the end of the stage, in all the cases I see no messages afterwards.
2. Environment:
- OS Information: Ubuntu 22
GrayLog: 6.0.2
Opensearch: 2.14
MongoDB: 7.17