Splunk Dev

Change the syslog sourcetype

KarunK
Contributor

Hi,

I need to change the source-type "syslog" to "abc_syslog". My understanding is we cannot change the source-type once the log is indexing.

Any suggestions please ?

input.conf file at the forwader is given below. I tried to add the sourcetype at the forwarder as "abc_syslog" in the input.conf file (below), but the splunk even stopped indexing.

[monitor:///var/adm/messages]
host = ssapp0813
index = abc_syslog
Tags (1)
0 Karma
1 Solution

Brian_Osburn
Builder

Judging by the example given, you changed the index, not the sourcetype.

If you're wanting to change all the sourcetypes from the source /var/adm/messages, you can do the following:

On the indexer, add the following to $SPLUNK_HOME/etc/system/local/props.conf

[source::/var/adm/messages]

sourcetype=abc_syslog

Brian

View solution in original post

Brian_Osburn
Builder

Judging by the example given, you changed the index, not the sourcetype.

If you're wanting to change all the sourcetypes from the source /var/adm/messages, you can do the following:

On the indexer, add the following to $SPLUNK_HOME/etc/system/local/props.conf

[source::/var/adm/messages]

sourcetype=abc_syslog

Brian

KarunK
Contributor

Yep it worked.. Thanks for that...

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...