Getting Data In

sourcetype override

jackykitkit
New Member

I am new to splunk and i am now going to receive syslog from multiple devices on UDP514, so i cant define a specific sourcetype to UDP:514, right? And I installed the Fortigate apps and edited the /etc/hosts to resolve the IP. I can successfully resolve the IP to hostname "fortigate" and below are my input.conf and props.conf files

input.conf
[udp://514]
connection_host = dns

props.conf
[host::fortigate]
sourcetype = fortigate

It is not working, sourcetype of the data still shown as UDP:514, did i do any wrong?
Thanks for helping

Tags (2)
0 Karma

lukejadamec
Super Champion

The input.conf UDP sets the sourcetype, and source.

This will need to be overridden, and a props.conf by itself is not enough.

See this post: http://answers.splunk.com/answers/34251/udp514-and-source-types

Hope this helps.

0 Karma

jackykitkit
New Member

Thanks for helping, i am now successfully override the sourcetype of fortigate, and my config are:

input.conf
[udp://514]
connection_host = dns
sourcetype = syslog

props.conf
[syslog]
TRANSFORMS-sourcetype_and_host_override = fortigate
SHOULD_LINEMERGE = false

transforms.conf
[fortigate]
DEST_KEY = MetaData:Sourcetype
REGEX = fortigate
FORMAT = sourcetype::fortigate

But how can i override the sourcetype if i have another host come from udp514? thanks

0 Karma

adrianathome
Communicator

You can do

[udp://iPaddress:514]
Index=foo
sourcetype=bar

jackykitkit
New Member

yes, the host shown as "fortigate" sourcetype and source are UDP:514

0 Karma

linu1988
Champion

shouldn't the sourcetype be present in the udp://.. inputs stanza?

lguinn2
Legend

Does the host of the data show up as fortigate?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...