Getting Data In

How do I edit my inputs.conf monitor stanzas to route data to the correct indexes?

tkwaller
Builder

Hello

I have some VMware hosts that I want to put data into a specific index for, but it currently is going to another index due to another input.

In inputs.conf I have these:

[monitor:///var/log/*vmw*/messages]
disabled = false
sourcetype = vmw-syslog
index=vmware
host_segment = 3

[monitor:///var/log/*log*.thisaddress.com/messages]
disabled = false
sourcetype = syslog
index=os
host_segment = 3

I have hosts of the types:

aaa01vmw005.thisaddress.com
aaa01vmw004.thisaddress.com
aaa01vmw003.thisaddress.com

and

aaa01log005.thisaddress.com
aaa01log004.thisaddress.com
aaa01log003.thisaddress.com

None of the data from the *vmw* hosts make it to the VMware index all the data goes to the os index. I'm guessing its related to thisaddress.com being present in both host types.

How are they matching? Is the fix as simple as adding thisaddress.com to the stanza for the VMware index?

Thanks for the help

0 Karma
1 Solution

masonmorales
Influencer

Try:

[monitor:///var/log/*vmw*/messages]
disabled = false
sourcetype = vmw-syslog
index=vmware
host_segment = 3

[monitor:///var/log/*log*.thisaddress.com/messages]
blacklist = aaa\d\dvmw.+
disabled = false
sourcetype = syslog
index=os
host_segment = 3

For more info about whitelists/blacklists, check out: http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/Inputsconf

View solution in original post

masonmorales
Influencer

Try:

[monitor:///var/log/*vmw*/messages]
disabled = false
sourcetype = vmw-syslog
index=vmware
host_segment = 3

[monitor:///var/log/*log*.thisaddress.com/messages]
blacklist = aaa\d\dvmw.+
disabled = false
sourcetype = syslog
index=os
host_segment = 3

For more info about whitelists/blacklists, check out: http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/Inputsconf

tkwaller
Builder

So this is what I did(small edit to blacklist) and it DID fix the problem:

[monitor:///var/log/*log*.thisaddress.com/messages]
blacklist = \d\dvmw.+
disabled = false
sourcetype = syslog
index=os
host_segment = 3
0 Karma

somesoni2
Revered Legend

I would give that a try (being more specific and detailed in monitoring stanza,by adding thisaddress.com).

0 Karma
Get Updates on the Splunk Community!

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...