Can we configure input.conf define port with multiple sourcetype?
For ex.
[tcp://6134]
index = top
sourcetype = mac_log
sourcetype= tac_log
disabled = 0
Or
Is there any way to segregate logs coming in one port with different sourcetypes?
Hi @ManojNegi,
you have two ways:
1)
if the hosts with IP =10.10.10.x muste have sourcetype 1 and the ones with ip=10.10.20.* have sourcetype2 you could use:
[tcp://10.10.10.*:6134]
index = top
disabled = 0
sourcetype = mac_log
[tcp://10.10.20.*:6134]
index = top
sourcetype= tac_log
disabled = 0
2)
you can overryde sourcetype following the instructions at https://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides
Ciao.
Giuseppe