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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...