Once again thank you for welcoming me to the community. We are running Graylog is a play environment to learn as much as we can. We are running version 4.0.16 currently. We have setup a very simple installation to collect data from a Juniper SRX110 which is working very well an is automatically break down the message into all the field names required e.g. source-address and destination-address. I was very surprised that graylog by default was able to break these messages down without a grok script. The issue i am seeing is with the newer Juniper SRX devices as the output is a little different. We only seem to missing the source-address field. Sample is below. I have tired to create a grok but the inbuilt code/function seems to be overriding it. If anyone has created a grok for the newer SRX versions are you able to assist?
Good Evening
I was adding the grok to the input directly. I have one working for session-create. This seems to work well now that I have it. I was wondering if there is a smarter way to do this as the fields might change with extra software versions over time.
hmmm… the GROK you put there doesn’t really match the messages you have in the original post… If you have it working on the input directly, then you are using an Extractor…
That being said, it looks like the GROK you created could instead be set up in a pipeline as a key_value() solution - that would automatically adjust to additional (or removed) fields.