Getting Data In

Logs for ESX going into two different indexes

jkamdar
Communicator

I have ESX hosts sending logs to rsyslog and then being ingested in Splunk. 

Originally, I configured to ingest all logs (my linux servers and ESX) into one index called linux. Later, I created new index called "esx" and modified the inputs.conf on my rsyslog server to reflect in stanzas for all the esx hosts and esxvcenter (added index = esx) and restarted Splunkforwarder. 

However, it looks like, I am getting data in both indexes, linux and esx. 

I have checked all possible inputs.conf on my rsyslog server but can't find anywhere that directs ESX logs to "linux" index. 

Any help to troubleshoot the issue would be appreciated. 

 

 

Labels (3)
0 Karma

jkamdar
Communicator

@gcusello @kiran_panchavat  thanks for your help but unfortunately, I can't share any files, sorry. I am in a air-gapped environment. I have already run splunk btool inputs list --debug | grep index . but I will try without using "grep index" and see if I can find anything weird. I haven't checked props.conf but I will check it now. As far as I know, I haven't made any change in the props.conf. 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jkamdar ,

cases as your is usually caused by a misconfiguration, for this reason I hint to better analyze your btool result, not using grep,

The issue could be caused by two inputs or by a transformation in props.conf.

Ciao.

Giuseppe

0 Karma

jkamdar
Communicator

@gcusello I never got a chance to do it today but will try tomorrow and report back. 

0 Karma

kiran_panchavat
Champion

@jkamdar 

Can you send the inputs.conf and props.conf files? Also, please use the btool command to check if there are any duplicate inputs.conf configurations.

To check for duplicate inputs.conf configurations using the btool command, you can run the following:

/opt/splunk/bin/splunk btool inputs list --debug

This command will display the full path to each inputs.conf file that Splunk is reading from, making it easier to identify any duplicates.

Did this help? If yes, please consider giving kudos, marking it as the solution, or commenting for clarification — your feedback keeps the community going!
0 Karma

jkamdar
Communicator

@gcusello 

I tried btool commands on my rsyslog server:

splunk btool inputs list and

splunk btool inputs list --debug | grep index 

and the files I found are configured properly.  Not sure where to look next. 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jkamdar ,

it's really difficoult to debug your issue without accessing your conf files and your data!

could you share your inputs.conf and props.conf?

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jkamdar ,

at first, are you sure that you are analyzing only the new data and not also the oldest?

Anyway, use btool ( https://docs.splunk.com/Documentation/Splunk/9.4.0/Troubleshooting/Usebtooltotroubleshootconfigurati... ) to debug your configurations because, probably there's another input.

At least, are you sure that you're receiving logs from the same host?

Ciao.

Giuseppe

0 Karma

jkamdar
Communicator

@gcusello thanks for a quick response. 

>>at first, are you sure that you are analyzing only the new data and not also the oldest?

Yes, I have changes time picker for last 15 or 60 minutes to make sure it's all recent data

>> At least, are you sure that you're receiving logs from the same host?

Yes,  this is a very small deployment and have only one ESX server. 

>>Anyway, use btool

I meant try btool but ended up posting question before I try that. I will do that now. 

 

 

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!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

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

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...