Splunk Dev

What should be in my .gitignore for a new app/add-on?

Wilcooley
Path Finder

I'm importing an unmaintained app into my own git repo (there is no upstream, AFAICT) and there are a handful of files that are generated and should be ignored in any working copy?

This is what I have so far for my .gitignore:

local/
metadata/local.meta
# Maybe?
viewstates.conf
# This is added automatically when the app is uploaded, isn't it?
default/MANIFEST

What else?

I realize this is probably somewhere in the documentation, but it's probably spread over several different sources.

bmacias84
Champion

So we use git for all configuration files and apps for splunk. Here's what we decided on.


*.DS_Store
*local.meta
*.csv
*.pyo
*.idea
!<some_static_lookup>.csv

  • .csv - is ignored if any search are generating lookups
  • .pyo - any pythongenerated files
  • local.meta - since this is updated by deployment server
  • !.csv - include any static lookups
  • .idea- since we work on macs
  • DS_Store - since we work on macs

Hope this helps

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...