Getting Data In

Universal Forwarder folder path monitor

sbattista09
Contributor

What stanza do i set in the Universal Forwarder to send data to the indexers from a folder path?
I want to send output from "/var/log/file.log" to the indexers in a new index called "IndexA".

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try this:

[monitor:///var/log/file.log]
index = IndexA
---
If this reply helps you, Karma would be appreciated.

View solution in original post

sbattista09
Contributor

they both work. Thank you all!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try this:

[monitor:///var/log/file.log]
index = IndexA
---
If this reply helps you, Karma would be appreciated.

skoelpin
SplunkTrust
SplunkTrust

Define your host

host = Your Hostname

[monitor:///var/log/file.log]
disabled = false
sourcetype = Your sourcetype
index = indexA

sbattista09
Contributor

where would i set this in the Universal Forwarder?

0 Karma

skoelpin
SplunkTrust
SplunkTrust

It didn't save correctly, I edited my post and added the index part back into the Stanza.

0 Karma

skoelpin
SplunkTrust
SplunkTrust

If your on a linux box go to
/splunk/etc/system/local vi inputs.conf

If your on Windows then splunk\etc\system\local then open the inputs.conf and add the stanza

Don't forget to restart your Splunk service after making these changes

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