Monitoring Splunk

Log keeps sending to index=main

splunktrainingu
Communicator

Hello, 

I been trying to figure this out for the past 2 days now and I cannot seem to find which config file is making my host send logs to index=main. I have 4 other machines in forward management that have the same application sending logs to the correct index except for this system. It seems to send Application logs to index=main but all other security logs go to index=windows. I double checked the apps folder on that machine  and compared it with a machine that is not sending to index main and also did the same in the etc/system/local.  

 

This is a single deployment we have a single search head and single indexer. 

Labels (2)
1 Solution

renjith_nair
Legend

Try btool on the source machine to check whether any apps/local inputs.conf configured with index main

Reference : https://docs.splunk.com/Documentation/Splunk/8.0.6/Troubleshooting/Usebtooltotroubleshootconfigurati...

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

inventsekar
SplunkTrust
SplunkTrust

Hi @splunktrainingu ..
Q - I cannot seem to find which config file is making my host send logs to index=main.

Answers:
1. on the forwarder(s), you can run the btool command.

2. on the forwarder(s), you can view the inputs.conf file directly and see which log file is sending data to which index.

3. on splunk GUI, when you search for the logs from a host/forwarder, you can list down the source, sourcetype as well.
for example: 

index=main host=UF-hostname | table source sourcetype index _raw _time


(PS - i have given around 500+ karma points so far, received badge for that, if an answer helped you, a karma point would be nice!. we all should start "Learn, Give Back, Have Fun")

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

renjith_nair
Legend

Try btool on the source machine to check whether any apps/local inputs.conf configured with index main

Reference : https://docs.splunk.com/Documentation/Splunk/8.0.6/Troubleshooting/Usebtooltotroubleshootconfigurati...

---
What goes around comes around. If it helps, hit it with Karma 🙂

splunktrainingu
Communicator

Thank you! from now on I am going to use this! It was so easy to see for some reason there was a inputs.conf in SplunkUniversalforwarder/etc/app/splunkuniversalforwarder/local/inputs.conf

 

 

I used the command

splunk btool inputs list --debug
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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...