Getting Data In

How find index-time field extractions.

adamsmith47
Communicator

Hello all,

Our environment has some custom index-time field extractions we find to be very useful (yes, I know Splunk doesn't recommend this). Though due to the possible performance implications of this practice, I want to be 100% confident I know where all index-time fields exist in our indexes.

At first, I thought this would be easy, throw a |tstats command together... when it dawned on me I have no idea how to do this.

So, if anyone can think of how to get a list of indexes/sources/sourcetypes which contain non-standard index-time field extractions, that'd be a life-saver!

Thanks for any help.

0 Karma

martynoconnor
Communicator

| tstats count where index=yourindex by yourindexedfield

If it works, you're in business, if not... sadly no.

You could also do a conventional search like

index=foo fieldname::value

If that works, it's an indexed field.

esix_splunk
Splunk Employee
Splunk Employee

Ill add to this that you need to make sure you have the correct configurations deployed on your SH for indexed fields for them to be properly recognized via *fields.conf ( https://docs.splunk.com/Documentation/Splunk/8.0.0/Data/Configureindex-timefieldextraction)

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...