Skip to content

Simple custom command for Splunk allowing more advanced text templating in queries.

Notifications You must be signed in to change notification settings

valorcz/splunk_jinja_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splunk Jinja2 Formatter

If you seek the actual documentation for the Splunk custom command, please read README.md in jinja_formatter folder.

This part contains some development notes and remarks, which will later on be put somewhere else.

Development Notes

Virtual Environment

This command prepares a few tools we'll be using in the app validation process:

python3 -m venv .venv
source .venv/bin/activate
pip install https://download.splunk.com/misc/packaging-toolkit/splunk-packaging-toolkit-1.0.1.tar.gz
pip install splunk-appinspect

Verify

splunk-appinspect inspect jinja_formatter

In order to get ready for Splunk app certification, run the verbose mode:

splunk-appinspect inspect --mode=precert jinja_formatter

Package

Btw, as of October 2024, splunk-packaging-toolkit only works under python3.9 version, not newer ones. Work with pyenv to get python3.9 to the system, otherwise slim won't work. Hopefully they'll update the package before python3.9 reaches its end-of-life (2025-10).

slim package jinja_formatter -o app

References

  • TBD

About

Simple custom command for Splunk allowing more advanced text templating in queries.

Resources

Stars

Watchers

Forks

Packages

No packages published