Getting Data In

How to create a new field with static value during index time


I want to append new field with static value to the data during index time.

how to create with props.conf/transform.conf and no field extraction is required

0 Karma


You can use INGEST_EVAL = foo="bar" in transforms.conf.

If this reply helps you, an upvote would be appreciated.


worked directly adding on inputs.conf.

_meta =

0 Karma

Ultra Champion

why do you need to do this? what is the use case?
if you need that data all the time ... you can add ... | eval NEW_FIELD = "YOUR STATIC VALUE" ...

0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...