Getting Data In

Comments in inputs.conf

peter_gianusso
Communicator

Is there a way to place comments in your inputs.conf file? My file will be over 1000 stanzas long so comments would be a nice way for someone else to understand it.

Tags (2)
1 Solution

mixolydian
Path Finder

kristian_kolb
Ultra Champion

Well - not saying that you don't need it. But usually you can make use of wildcards, recursing, whitelists/blacklists etc to make the number actual inputs.conf stanzas more manageable. Perhaps that is not possible in your case.

/k

0 Karma

peter_gianusso
Communicator

We have hundreds of servers with 1000's of log files

0 Karma

kristian_kolb
Ultra Champion

It sounds like that could be simplified somehow. I've never heard of anything like a 1000 stanzas in a single inputs.conf. To me, 50 would be a rather large inputs.conf.

What's your scenario?

/k

0 Karma

mixolydian
Path Finder

Use the hash or pound sign (#) before a comment.

http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf

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