icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading jinja_formatter
SHA256 checksum (jinja_formatter_102.tgz) e39996dfa004caa3c4db847adc5e380e1a4684ddab66c1ec4ede6575408aa770 SHA256 checksum (jinja_formatter_101.tgz) 24dd6ed6d40ea16e8db9c9f51d20160a1b8769053705187b6d93a13e694cae09
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate



Splunk Cloud
In many cases, people format a user-readable content within
Splunk -- either because they need to send an e-mail, show
a text in a dashboard, or push the results to JIRA or other
ticketing tool.

But when they format the actual readable message, they have
to use a a very simple formatting techniques, making the
query look rather ugly and difficult to maintain.

With a template, it's possible to specify the resulting
text with placeholders, which will later on be properly
populated by the query results. And that's exactly
what jinja2format does.


The jinja2format command returns events with a one new field,
formatted_template, unless you specify an result option.


The following example will output the rendered template into
formatted_template field:

  | makeresults count=1 
  | eval celsius = random()%100 
  | eval name = "Joe" 
  | jinja2format "It's {{ celsius }} degrees, {{ name }}!"

In this example, we override the output field:

  | makeresults count=1
  | eval celsius = random()%100 
  | eval name = "Joe" 
  | eval template="It's {{ celsius }} degrees, {{ name }}!"
  | jinja2format result=out template

Templating Language

Please refer to the official documentation for more details.

Release Notes

Version 1.0.2
March 22, 2023

Less restrictive permissions, as it might have been causing problems in some installations.

Version 1.0.1
March 16, 2023

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.