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

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...