Getting Data In

Routing syslog streams to different index

menkurau
Path Finder

I have a stream (udp 518) of syslog coming in from two different syslog servers. I thought that I would be able to specify in inputs.conf like so:

[udp://server1:518]
sourcetype = syslog
index = index1
connection_host = dns

[udp://server2:518]
sourcetype = syslog
index = index2
connection_host = dns

This is not working. If i comment out the second stanza, i can see syslog from server1 in index1, but nothing if both are uncommented. Any thoughts?

Tags (4)
0 Karma

sdaniels
Splunk Employee
Splunk Employee

Don't specify the server and you'll get the data from both. [udp://518]

http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports#Add_a_network_input_usin...

If is empty - [udp://port] - the port will accept data sent from any server.

Then here to specify the sourcetype etc...

http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...