Splunk Enterprise Security

Batch input. How to index .tar files quickly?

rendie
Path Finder

Hi,

I have batch index with next configuration:

[batch://path/to/files]
move_policy = sinkhole
index = maindata
 
And if in folder "files" are .csv files, then they will be indexed in seconds. But if in the folder are .tar.gz archive with CSV file inside, then he will be indexed only after restart Splunk.
 
How to index archive some quickly as .csv files?
 
Thanks.
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @rendie,

If you are putting the tar.gz files with the same name, this may be the reason you need to restart. 

Please try adding below check modified time setting and try;

[batch://path/to/files]
move_policy = sinkhole
CHECK_METHOD = modtime
index = maindata

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @rendie,

If you are putting the tar.gz files with the same name, this may be the reason you need to restart. 

Please try adding below check modified time setting and try;

[batch://path/to/files]
move_policy = sinkhole
CHECK_METHOD = modtime
index = maindata

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

New This Month - Observability Updates Give Extended Visibility and Improve User ...

This month is a collection of special news! From Magic Quadrant updates to AppDynamics integrations to ...

Intro to Splunk Synthetic Monitoring

In our last post, we mentioned that the 3 key pieces of observability – metrics, logs, and traces – provide ...