Splunk Search

How to index a file without extracting fields?

leunammejii
New Member

I'm trying to index a file but I don't want Splunk to try to extract interesting fields. Or if it does, I want the field to be the entire contents of the file called 'contents'. Is this possible?

0 Karma
1 Solution

skoelpin
SplunkTrust
SplunkTrust

Fields are extracted on the search head which push out knowledge bundles to the indexers when you search

To test this, do a search in Fast Mode and notice how it does not enable field discovery which means your fields are not available.. Then do a search in Smart or Verbose mode and notice your fields are available

View solution in original post

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Fields are extracted on the search head which push out knowledge bundles to the indexers when you search

To test this, do a search in Fast Mode and notice how it does not enable field discovery which means your fields are not available.. Then do a search in Smart or Verbose mode and notice your fields are available

0 Karma

leunammejii
New Member

Maybe I'm understanding indexing wrong. Are these fields are not indexed when I switch to verbose mode?

0 Karma

skoelpin
SplunkTrust
SplunkTrust

You technically can extract fields at index time, but its not recommended to do so for performance issues. Fields are extracted at search time by the search head, hence why the fields are available depending on which search mode you use.

You only index the data once which is when it goes from your forwarder to the indexer. The data is available to be searched on the indexer, but fields will be available because they are defined on the SH which push knowledge bundles to the indexers when the indexers begin to search the data

Remember that indexers are responsible for indexing AND searching the data

0 Karma

leunammejii
New Member

It all makes sense now. Thanks for your help.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...