Getting Data In

sourcetype from universal forwarder to splunk indexer

yuriy_zubarev
Engager

The universal forwarder has a very simple configuration of what to scan for (inputs.conf) and where to send it to (outputs.conf).

Splunk indexer has the following in props.conf

[source::.../....log4j]
sourcetype = log4j

I want every *.log4j file to have "log4j" sourcetype but it doesn't work when receiving information from the forwarder.

For example, I see the following from "summary" screen in indexer:

source: /data1/packages/apache-tomcat/logs/splunk/splunk-test/app.log.2011-04-04.log4j
sourcetype: app.log

How can I have "app.log.2011-04-04.log4j" to be assigned "log4j" sourcetype?

0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

You need to put that [source::.../....log4j] stanza on the forwarder, where it will be set on the input. Please see: http://www.splunk.com/wiki/Where_do_I_configure_my_Splunk_settings%3F

View solution in original post

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

You need to put that [source::.../....log4j] stanza on the forwarder, where it will be set on the input. Please see: http://www.splunk.com/wiki/Where_do_I_configure_my_Splunk_settings%3F

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...