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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...