Getting Data In

Should I split inputs and props into distinct apps?

spl_aficionado
Path Finder

Our custom here is to create a props app and an inputs app. The inputs apps are being deployed on the on-prem side, while for the props apps we usually deploy on the cloud. I wonder whether to consolidate inputs and props into one app for simpler administration.

Labels (2)
Tags (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @spl_aficionado ,

separating inpus and props is a recommended PS best practices even if I don't understand why to use two different add-ons.

As @PickleRick said, I use two custom apps only on UFs, on HFs I use to create a custom app for inputs and I use standard (from Splunkbase) TAs for the props, so I can easily upgrade them.

Ciao.

Giuseppe

0 Karma

PickleRick
SplunkTrust
SplunkTrust

This is a kinda "religious" question. There are some people who prefer having more small apps, others like having bigger, consolidated ones. I'd probably try to keep a typical add-on/app split (add-on containing the "technical" part of stuff for given solution - inputs, props and so on, app containing dashboards and such). I'd push the app with inputs disabled by default and I'd locally push an additional app enabling selected inputs.

But it's not "the only right solution".

There can be exceptions - for example if the input part is heavy (like containing modular inputs with a lot of code) I could consider splitting it into another app so that it doesn't end up on SHs (and replicated in knowledge bundle to indeers).

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I vote in favor of maintaining the split - not as an input/props split, but as an on-prem/cloud split.  Inputs that work on-prem probably don't work (at least not the same) in the cloud and props in one may not apply to the other.

---
If this reply helps you, Karma would be appreciated.

spl_aficionado
Path Finder

Thank you @richgalloway, in general, would you combine the inputs and props apps?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I would consider putting inputs.conf and the props associated with the sourcetypes in those inputs into the same app.  I also would ensure all inputs are disabled by default.

If multiple input.conf file reference the same sourcetype (like "syslog", to use a bad example) then I would move the props to a separate app.  This should help future maintainers realize the props are not specific to any one input.

---
If this reply helps you, Karma would be appreciated.
0 Karma
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 ...