Getting Data In

Routing syslog streams to different index

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:

sourcetype = syslog
index = index1
connection_host = dns

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

Splunk Employee
Splunk Employee

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

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

Then here to specify the sourcetype etc...

State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!