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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...