Getting Data In

MetaData:Index and MetaData:Sourcetype overridding sourcetype

Abhay
Explorer

Hi Splunkers,

My greetings !! !!

I have data coming from the Syslog server for which sourcetype Is "syslog", now, I have split the data going to three diff indexers in transfroms.conf using MetaData:Index and using the regular expression like (abc* | xyz* ), and it is working fine.

Now, I need to hardcode the sourcetype for each of the data going to the different index, now the sourcetype is coming as "syslog" but I want for every separate index I need to have separate sourcetype name .

 

Can you plz help !! 

Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Why don't you use an external syslog collector? SC4S or rsyslog? The configuration is more straightforward and you can have configuration working on network-level metadata. And is more efficient.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It seems like you're doing that the hard way.  I usually set up the syslog server to filter events based on source/content/whatever and put them into separate destination files.  Then the UF monitors those files and has inputs.conf settings for each one that specifies the target index and sourcetype.

---
If this reply helps you, Karma would be appreciated.
0 Karma

Abhay
Explorer

I could havd done the same thing, but the problem is somebody has already configured to have all the data to come  in one file itself.

 

Now, I need to use transforms.conf to set the new sourcetype instead of "syslog" sourcetype 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You inherited someone else's mistake, but that doesn't mean you have to live with it.  IMO, you'll be doing yourself and your successor a favor by re-configuring the syslog server.

If that's not possible then please describe how you've tried changing the sourcetype.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...