Getting Data In

Issue with specifying sourceype when logging data from multiple servers

srividyareddy
New Member

While ingesting the data all the logs from the server are falling into single source type. Can any one suggest me how data should be ingested so that source type are classified?

0 Karma

jkat54
SplunkTrust
SplunkTrust

You add the sourcetype on the input in inputs.conf. If you are doing tcp/udp inputs you will need to dos transform based on the source ip/hostname. If you are monitoring other stuff like log files, event logs, performance counters, etc... then it's just a sourcetype=yourSourtceTypeHere in the inputs.conf stanzas.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi srividyareddy,
why all your logs have the same sourcetype? in this way you cannot correctly parse different logs.
Are you receiving logs from Forwarders or syslog or what?

Anyway, if there are some regexes that permit you to override sourcetype value you could use the method described at https://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides or http://docs.splunk.com/Documentation/Splunk/latest/Data/Bypassautomaticsourcetypeassignment but it's better to assign sourcetype in Forwarders or syslog inputs.

The best way is to create a Technical Add-on with an inputs.conf with the correct sourcetype assignment, distributing it to your servers using a Deployment server.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...