Getting Data In

Why do I see the default log files, but not the monitored log files being forwarded to indexers?

isha_rastogi
Path Finder

I am forwarding the data from forwarder to indexer. I am able to see the default log files that forwarder forwards to indexer, but not able to see the monitored file in indexer and no error is being logged in forwarder and indexers splunkd.log and metrics.log.

My inputs.conf Configuration:

inputs.conf
[monitor:///var/log/test]
disabled = false
sourcetype = test
index=tutorial

Outputs.conf

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = xx.xx.xx.xxx:9997
[tcpout-server://xx.xx.xx.xxx:9997]

Tried to run Splunk list monitor in forwarder:

Monitored directories:
/var/log/test
                /var/log/test/service.log
                /var/log/test/testSplunk

Please suggest on the same.

0 Karma
1 Solution

stephanefotso
Motivator

Hello. Modify your inputs.conf like this

[monitor:///var/log/test/*.*]
disabled = false
sourcetype = test
index=tutorial

Thanks

SGF

View solution in original post

stephanefotso
Motivator

Hello. Modify your inputs.conf like this

[monitor:///var/log/test/*.*]
disabled = false
sourcetype = test
index=tutorial

Thanks

SGF
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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