Splunk Search

New metadata field for all events coming via UF for custom application

Charlize
Engager

Added the config for the new metadata field in the inputs.conf file and created a fields.conf file to set the field as indexed=true. Still the field is not showing up on SH. This is done for the cloud envi

inputs.conf
[monitor://D:\Splunk\abc\*.csv]

disabled = false
index = index_abc
sourcetype = src_abc
_meta = id::123
 
fields.conf
[id]
INDEXED=true
Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Adding to valid @livehybrid points, you should set INDEXED_VALUE=false. It has nothing to do with the issue at hand but without it you won't be able to search for id=123 if then"123" string isn't contained within the raw event.

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @Charlize 

Just to check, did you deploy the fields.conf to your cloud environment, not the UF?

Also, are you able to search the field with tstats, such as
| tstats count where index=index_abc by id

 

 

🌟Did this answer help you? If so, please consider:

    • Adding karma to show it was useful
    • Marking it as the solution if it resolved your issue
    • Commenting if you need any clarificatiob

Your feedback encourages the volunteers in this community to continue contributing.

Charlize
Engager

| tstats count where index=index_abc by id   

There are no results for this query. But events are there in the index.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

1. Again - where did you put the fields.conf? (but this shouldn't affect tstats)

2. Do you have any other _meta definitions on your UF. Did you verify the effective config with btool?

3. Try 

| walklex index=index_abc type=field

over a longer time span and see if you get your id  as one of the results.

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...