Getting Data In

How can I use blacklist to ignore directories that include "-"?

Stokers_23
Explorer

I have a monitor set up in inputs.conf on my UF as follows

[monitor:///log/test]
  blacklist = ppd.*\.log$|prod.*\.log$
  sourcetype = service_log
  index = nptest1

/log/test also contains some subdirectories I was to ignore, named application- or server- how can I edit my blacklist to ignore directories that end in a hyphen?

Thanks!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Have you tried this?

[monitor:///log/test]
blacklist = ppd..log$|prod..log$|-$
sourcetype = service_log
index = nptest1
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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