Getting Data In

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

DataOrg
Builder

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

richgalloway
SplunkTrust
SplunkTrust

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

---
If this reply helps you, Karma would be appreciated.

DataOrg
Builder

worked directly adding on inputs.conf.

[script://path/your_script.py]
_meta = script_name::abc.py

0 Karma

adonio
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!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...