Splunk Search

Is tstats supposed to work with fields that contain period characters?

woodcock
Esteemed Legend

I just discovered that indexed fields with periods in them are not tstatsable in my 7.2.1 environment. Is this a known thing? Is it a bug?

For those who would like to play along, if you have INDEXED_EXTRACTIONS = json events, then you surely have some index-time fields with periods in them. First find them:

index=foo AND sourcetype=json AND index.field.with.periods=*

Then verify that it is index-time like this (it should also return events; if not, then index.field.with.periods is not index-time).

index=foo AND sourcetype=json AND index.field.with.periods::*

Then test for fail like this:

|tstats first("index.field.with.periods") AS this_should_work_but_will_not WHERE index=foo AND sourcetype=json
0 Karma

chrisyounger
SplunkTrust
SplunkTrust

This works fine for me. Did you just forget your leading pipe in the answers question? Interestingly, using single quotes doesnt work. But no quotes or double quotes works.

alt text

woodcock
Esteemed Legend

I edited and added the pipe. What version of Splunk (Search Head and Indexers)?

0 Karma

chrisyounger
SplunkTrust
SplunkTrust

Yes it does. ver 7.2.0

alt text

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...