Getting Data In
Highlighted

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

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
Highlighted

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

SplunkTrust
SplunkTrust

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

0 Karma
Highlighted

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

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

Highlighted

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

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