I am collecting nginx logs in graylog. one of the log field is xff header.
Now xff header can have the unpredictable amount of ips.
Some time string is like “xff=1.1.1.1” and some time is like “xff=2.2.2.2, 1.1.1.1” and some time reaches up to 5 ips.
Now I want to parse them into different fields. Do not know how to do it.
What I want is for “xff=1.1.1.1” it should be “xff1=1.1.1.1” and for “xff=2.2.2.2, 1.1.1.1” it should be “xff1=2.2.2.2, xff2=1.1.1.1”.
Is it possible? or someone has any other idea?