Getting Data In

Can I monitor a file with extension .splunk?

btawiah
Explorer

Trying to monitor a file that ends with .splunk but for some reason splunk will not index it. Only when I change the extension to .txt, it ingests. Any reasons why this is happening?

Thanks

0 Karma
1 Solution

cvssravan
Path Finder

@btawiah
This is the reason:

Files with a .splunk filename extension are also not monitored, because files with that extension contain Splunk metadata. If you need to index files with a .splunk extension, use the add oneshot CLI command.

You can read more here:
https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Monitorfilesanddirectories

View solution in original post

cvssravan
Path Finder

@btawiah
This is the reason:

Files with a .splunk filename extension are also not monitored, because files with that extension contain Splunk metadata. If you need to index files with a .splunk extension, use the add oneshot CLI command.

You can read more here:
https://docs.splunk.com/Documentation/Splunk/7.2.4/Data/Monitorfilesanddirectories

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...