Creating ingest node pipeline with if condition

Hello,

I need to create ingest node pipeline that will tag every document with a specific field based on IP.
I need to make it for 4 different groups with over 200 IP addresses.

So far I have tried something like this

But I got this error I don't really understand.
image

Can you help me with an example I can adopt for this use case?

I believe I need to do something like for if statements with a lot of && for a different host.ip

Ok so this stopped throw errors, but doest not do anything... :confused:

image

image

Any idea what am I doing wrong?

Ok, I got this.

image

1 Like

Thanks for sharing your solution!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.