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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...