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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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