Getting Data In

How to configure inputs.conf to apply crcsalt for only a few files under a directory/folder, not all of them?

brod_geico
Path Finder

I need to apply CRCsalt for only few file under dir/folder not all of them. Below is my current inputs.conf

[monitor://d:\winevents]
recursive = true
whitelist = .log$|.txt$|.xml$|.out$
sourcetype = log
index = web

Tags (2)
0 Karma

yannK
Splunk Employee
Splunk Employee

the crcsalt is applied per stanza, so you want to create one stanza per group of files

example if you have your file in sub folders
[monitor://d:winevents/.../*.log]
recursive = true
crcsalt=myglogcrc
sourcetype = log
index = web

[monitor://d:winevents/.../*.txt]
recursive = true
crcsalt=mytextcrc
sourcetype = log
index = web

etc...

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