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
SplunkTrust
SplunkTrust

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!

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 ...