Splunk Dev

Do not overwrite CSV-Lookup files with upgrade of app?

klowk
Path Finder

Hi,

we have build a new app internally.

We use different CSV-Files to save relevant data. Is there any possibility to ignore this files during packaging the app on development system or is there a flag we can set on production system that these csv files are not overwritten during update?

Because the csv files have different content on development and production system.

Thanks for your support

Kathrin

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @klowk,

in few words, you stored some information in lookups base on csv.

in this case, if you have a Search Head Cluster, the only way is to update apps using the preserve lookups option (https://docs.splunk.com/Documentation/Splunk/latest/DistSearch/PropagateSHCconfigurationchanges#Pres...).

If instead you have a Stand Alone Search Head or an All-in-one server, you have to preserve them manually.

Ciao.

Giuseppe

View solution in original post

0 Karma

klowk
Path Finder

it is only an option in search head cluster am i wrong?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @klowk,

Ciao and Next Time!

Giuseppe

P.S.: Karma Points are appreciated.

0 Karma

gjanders
SplunkTrust
SplunkTrust

Yes sorry,  this won't work for a standalone node

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @klowk,

where did you stored these csv files, in $SPLUNK_HOME/etc/apps/your_app or in $SPLUNK_HOME/var/run/splunk/csv ?

if the first, there's the risk to overwriteing files.

I the second no problems.

Only one additional question for my curiosity: why do you use csv instead a summary index or a lookup/kv-store?

Ciao.

Giuseppe

0 Karma

klowk
Path Finder

Hi Giuseppe,

at the moment we store the csv-files in App context ($SPLUNK_HOME/etc/apps/your_app).

Yes may be it is better to store them  in $SPLUNK_HOME/var/run/splunk/csv. Then we can still have the configuration and permissions on csv lookup file in app context correct?

The other option is to convert these files into kv-stores, the files are very smal so we only want to use csv files in our first version.

kind regards

Kathrin

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @klowk,

in few words, you stored some information in lookups base on csv.

in this case, if you have a Search Head Cluster, the only way is to update apps using the preserve lookups option (https://docs.splunk.com/Documentation/Splunk/latest/DistSearch/PropagateSHCconfigurationchanges#Pres...).

If instead you have a Stand Alone Search Head or an All-in-one server, you have to preserve them manually.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...