Getting Data In

Filter events on indexer from multiple universal forwarders

takemusu
Explorer

We've about 20 universal forwarders monitoring different log files. Our system doesn't allow to use heavy forwarders because of their performance impact on data indexing.
These universal forwarders send their data to a couple of indexers.

I've read Route and filter data docu (Discard specific events and keep the rest section). My question is that as we have different source log files located on different boxes, how would I refer them in props.conf file:

[source::?????]
TRANSFORMS-null= setnull

For example, on one box I monitor /log/log.1 and on another /log/log.2.
Should I point the hostname after the source:: as well? Could somebody show an example?

Thanks in advance,
Alexey

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Editing sourcetypes.conf rarely ever is required, your own sourcetype settings reside in props.conf.

Put your transforms list under your common sourcetype log4j in props.conf:

[log4j]
TRANSFORMS-null = ...

Remember, this will affect every event with sourcetype=log4j regardless of host and sourcetype.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Editing sourcetypes.conf rarely ever is required, your own sourcetype settings reside in props.conf.

Put your transforms list under your common sourcetype log4j in props.conf:

[log4j]
TRANSFORMS-null = ...

Remember, this will affect every event with sourcetype=log4j regardless of host and sourcetype.

takemusu
Explorer

Yes, for now these files are using the same sourcetype (log4j). When you say put the TRANSFORMS-foo value under that sourcetype - do you mean editing sourcetype.conf?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Do those files use the same sourcetype? If so, put the TRANSFORMS-foo value under that sourcetype.

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...