Does anyone know how to create a rule that distinguishes between “,vmx1,” and ',vmx1.703," (these are interface name and interface name + vlan number)?
Why “then” clause does not allow nested “when” conditions?
Is there a documentation of what I can and cannot do when writing rule conditions?
GROK1 claims that if I want to create this pattern:
INTERFACE [A-Za-z0-9]+(.[0-9]+)?
I need to create a file /etc/graylog/server/grok-patterns/custom with the line above, make it owned by graylog with access mask 644. Then edit the /etc/graylog/server/server.conf file and add the line “grok_patterns_path = /etc/graylog/server/grok-patterns/”. Restart the graylog-server service and now I may use the INTERFACE pattern to parse messages.
No, that does not work. We do not state anything like that in our docs, by the way. Please spend some more time reading the docs and familiarise yourself with it. It seems that in the long run, you might save time by doing so instead of trying to chase down what AI has wrong.
To create your pattern, go into the User Interface, System->Grok Patterns->press the “Create pattern” button.
I want to create a log parser that analyses incoming strings and parses them character by character making on the fly decision what every character is and part of what value it might be.