Getting Data In

Splunk multiple monitering stanza issue

rameshlpatel
Communicator

Hi ,

I am adding here multiple monitoring stanza to filter out different log files and give them source type.

But I am seeing in indexer's search that source SystemErr.log with two different source type i.e.
SystemErrs and SystemErr-Small.

Please suggest me what should i do to not do filter in two diffrent stanzas.

[monitor://E:/fflogs/SystemOut.log]
sourcetype=SystemOuts

[monitor://E:/fflogs/SystemErr.log]
sourcetype=SystemErrs

[monitor://E:/fflogs/]
whitelist=.log$

Tags (2)
0 Karma

rameshlpatel
Communicator

Yes, For first two stanza I want to filter out systemout and systemerr logs with specific sourcetype and for all others I have to send as it is.

0 Karma

lguinn2
Legend

You really should have only one monitor stanza for a directory. The following would be more efficient and work better:

inputs.conf

[monitor://E:\\fflogs\\]
whitelist=SystemErr.log$|SystemOut.log$ 

props.conf

[source::E:\\fflogs\\...\\SystemErr.log]
sourcetype=SystemErrs

[source::E:\\fflogs\\...\\SystemOut.log]
sourcetype=SystemOuts

You might need to set the whitelist differently, depending on what you want.

Note that setting the sourcetype, either in inputs.conf or in props.conf will not change any data that has already been indexed. My guess is that the SystemErr-Small (or SystemErr-TooSmall) was created because when you initially tried to index the data, Splunk could not automatically identify the sourcetype because the input file was too short.

0 Karma

lguinn2
Legend

props.conf is used in a number of places in Splunk, depending on the attributes that you are setting. Setting the sourcetype is done at input time - so this props.conf belongs on the forwarder.

You can (and probably will) have multiple copies of props.conf. Attibutes that are related to parsing go on the indexer...

http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F

0 Karma

rameshlpatel
Communicator

Your meaning is I have to put props.conf in forwarder local file with inputs.conf ? Spunk Support suggest me to add props.conf in indexer local file . I am confused.

0 Karma

lguinn2
Legend

This props.conf file belongs in the same directory as the inputs.conf file

0 Karma

rameshlpatel
Communicator

I tried to configure this in props.conf but some how its not working. That why I have only option to set in inputs.conf file. Please suggest how we can solve this problem i inputs.conf itself.

0 Karma

somesoni2
Revered Legend

What is the purpose of last stanza? Are you monitoring the whole folder as well?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...