Deployment Architecture

Linux TA app issue - different index based on hostname and OS

cameronr0705
New Member

We have 3k+ servers comprised of Linux, Windows, Solaris, and AIX. We would like to place different customers in separate indexes. We have this setup in Windows by having a customer app that points to the customer index and having multiple copies of the Windows app on our deployment server. This does not work for the Linux TA app since it appears there are files where the path is hardcoded to Splunk_TA_nix. Any ideas how to send data to the correct customer index based on the hostname and OS rather than have all Linux OS data in the same index?

Tags (1)
0 Karma

FrankVl
Ultra Champion

Regardless of the TA, you could still create separate, customer specific, apps with just inputs.conf (and perhaps a few custom props/transforms where needed) for the respective inputs and assign those to the customer specific indexes. While keeping the TA itself generic.

That is anyway (also for windows TA) a much better approach than duplicating entire TAs, only to customize a small part of its settings per customer. That is a disaster waiting to happen if one of the copies is missed in an update, or customizations are done inconsistently etc.

Keep 1 instance of the official TA and put any customer specific diversification in separate small apps that only contain those custom settings, in addition to (or overriding) the config from the original TA.

0 Karma

cameronr0705
New Member

I guess I don't follow. When I push the small app containing just the inputs.conf with the updated index using the deployment server how does Splunk know to use the rest of the Windows or Linux TA? Is there documentation somewhere? I agree having multiple copies of the same TA come updates there is a chance one will get missed and cause issues. Thanks

0 Karma

FrankVl
Ultra Champion

Because all of the configuration in those TAs is based on sourcetypes and sources etc. So as long as you set those correctly in your custom input, the rest will still work as expected. Configurations don't have to be together in 1 app to work together. Splunk merges all the installed apps together (with some clear rules on which takes precedence over what) to determine its configuration state.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...