All Apps and Add-ons

Splunk Add-on for Unix and Linux: Where is the sourcetype for /var/log/authlog defined?

hylam
Contributor

I have installed the unix TA on solaris 10. The unix TA is forwarding authentication failures events recorded in /var/log/authlog to index=os. I cannot locate the sourcetype=authlog in the dot conf files. Does it use the 3rd part of the path as the sourcetype? Where is this defined? Thx.

0 Karma

jcoates_splunk
Splunk Employee
Splunk Employee

Hi,

probably one of these areas:

[Splunk_TA_nix]$ grep -rin solaris default | grep -i sourcetype
default/props.conf:421:sourcetype = Solaris:Memory
default/props.conf:457:sourcetype = Solaris:Service
default/props.conf:542:sourcetype = Solaris:Version

But more to the point, the naughty routing into an index is controlled by inputs.conf. Here's how to override that:

$ head etc/apps/Splunk_TA_nix/local/inputs.conf 
[monitor:///etc]
disabled = false
index = default

[monitor:///home/.../.bash_history]
disabled = false
index = default
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...