Many IPs on input - How to avoid using if else chains?

Tags:

#1 Ana

Hello,

 

I'm new with NXLOG and I don't know how to configure the nxlog.conf file when having many IP entries from UDP sources.

 

I heritated an implementation that has too many ef and else because the IPs sources. I have some errors and with all those if and elses is pretty difficult to correct the problem.

Then I was wondering if ther is a way to separate the entries to avoid using if else if if else if every where.

I saw this option for outputs, but not sure if that works in the same way with inputs.

Thank you very much for your help and support. It will be really appreciated.

Cordially,

 

clombo

#2 b0ti Nxlog ✓
#1 Ana
Hello,   I'm new with NXLOG and I don't know how to configure the nxlog.conf file when having many IP entries from UDP sources.   I heritated an implementation that has too many ef and else because the IPs sources. I have some errors and with all those if and elses is pretty difficult to correct the problem. Then I was wondering if ther is a way to separate the entries to avoid using if else if if else if every where. I saw this option for outputs, but not sure if that works in the same way with inputs. Thank you very much for your help and support. It will be really appreciated. Cordially,   clombo

It's not very clear what you are after. If you could attach your config file that would help us understand the case.