In what format should I paste sample messages in order to test using a netflow input?
We don’t have the original message content as with the syslog input. I tried pasting in netflow data from wireshark capture but without success.
Thanks. I will take a look. I’ve since solved the rule error but it will be good to have a method of capturing netflow messages in a format I can paste in to the GL rules simulator.
It won’t work like that. Netflow has its own protocol header that you need information about. Put simply, a NETFLOW packet is an IP packet without an IP packet Payload but with status information. You need to create a FLOW probe (pmacct) and send it to a collector (GL NF INPUT). Or you use a flow proxy like nProbe to adjust the flow information.
My input is receiving messages OK. I wish to develop some rules to act upon it.
I guess therefore I am looking for the appropriate message format to paste in the ‘Raw message’ field of the Graylog pipeline simulator when testing a netflow input.
I don’t need to capture real netflow messages per se. Just a sample, that I can then edit ad hoc, paste in to the ‘Raw message’ box, and test my pipeline. An example would be very handy!
Or is it the case the simulator cannot be used with netflow inputs.
I’ll give you an example from my GL: (It’s IPFIX, the evolution of NETFLOW v9), You see that the messages field won’t get you anywhere. As written, with NETFLOW most of it happens in the header.
@H077E Many thanks for the example and link.
With the GL syslog input, there’s the option to Store the full original syslog message as full_message. Which can then be used in the simulator.
However there’s no equivalent option in the netflow input config, and if I understand you right, formatting a netflow payload for use in the simulator UI may not be viable.
It’s my first outing with netflow and just exploring at the moment. Thanks again.