Splunk Search

How to update app with deployment server without overwriting current csv files?

franks59
Explorer

I have an app that updates a lookup table from a saved search each night. The app is going to be updated periodically via a deployment server.

How can I keep the deployment server from overwriting the current lookup (.csv) files? If I leave them out of the deployment package, it will end up deleting them altogether.

Is it possible that the lookup files can reside in another app dedicated to housing the lookups and still be able to be called from the other app?

0 Karma

strive
Influencer

Yes, it is possible to have lookup CSV files in other app. You have to edit serverclass.conf file to include that app also to be deployed to your node.

We generally follow this design: Keep all the common files in a common app and push that app to all nodes. In our case lookups are also part of this common app.

0 Karma

franks59
Explorer

I forsee functionality of the apps depending on the common app expanding, requiring more csv files.

How do you then upgrade the common (csv) app without losing the current data?

0 Karma

musskopf
Builder

One more thing, the data for all lookups might be the same on all servers you're deploying it, right?! if that's the case you might decide to use a NFS or Samba share to store this file instead of re-create it on all servers each night.

0 Karma

musskopf
Builder

I have something similar. I've create a "core" app with my important and shared lookups so I can play with the other apps without worrying about it. Just make sure you configure the permissions for the lookup file and definitions to "all apps"

0 Karma
Get Updates on the Splunk Community!

Dashboard Studio Challenge - Learn New Tricks, Showcase Your Skills, and Win Prizes!

Reimagine what you can do with your dashboards. Dashboard Studio is Splunk’s newest dashboard builder to ...

Introducing Edge Processor: Next Gen Data Transformation

We get it - not only can it take a lot of time, money and resources to get data into Splunk, but it also takes ...

Take the 2021 Splunk Career Survey for $50 in Amazon Cash

Help us learn about how Splunk has impacted your career by taking the 2021 Splunk Career Survey. Last year’s ...