Getting Data In

Custom app creation | where to put inputs.conf and others?

GaetanVP
Contributor

Hello Splunkers,

I have a really quick question, I want to create and push (via my DS) a fully custom Add-On (or TA... not sure how to call it) to some of my UFs.

Basically I only need a inputs.conf to monitor some log files, but I do not know if I should place it under default/ or local/ folder. 

I know that for Splunk based TA, I would have overwritten the defaults config file with my local config files, but for a custom app I don't really know. 
Should I create inputs.conf inside default/ folder but with "disabled = true" for all stanza, and overwrite it with my local inputs.conf ?

Thanks for your help,
Gaetan

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @GaetanVP,

as you well know, if you're speaking of a custom App, you can choose both the locations.

For a custom app I prefer to use default to avoid to maintain old configurations and having a better control on the deployed configuration.

About the name I prefer TA because is quicker.

About the last question, create in deault folder the inputs you need, if there are not requested inputs, I prefer to delete them or to comment them than to use disabled=true.

Ciao.

Giuseppe

View solution in original post

GaetanVP
Contributor

Hello @gcusello,

Thanks for your quick and clear answer, I agree with all of your points 👍

Regards,
Gaetan

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @GaetanVP,

as you well know, if you're speaking of a custom App, you can choose both the locations.

For a custom app I prefer to use default to avoid to maintain old configurations and having a better control on the deployed configuration.

About the name I prefer TA because is quicker.

About the last question, create in deault folder the inputs you need, if there are not requested inputs, I prefer to delete them or to comment them than to use disabled=true.

Ciao.

Giuseppe

isoutamo
SplunkTrust
SplunkTrust

Hi

as @gcusello said, basically you could put those which place you want. But as you are owner/developer of that TA then (according to instructions)  you should use default folder for those. The only exceptions are if you have any plaintext password which needs to crypt when that TA is installed on UF, then you should put those under local to get those crypted. You should put only that plaintext password to local and all other values in that stanza to default.

r. Ismo

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...