Getting Data In

How to reindex rotate log file (rotation)?

giulioBalza
Path Finder

Hi everybody,

i know this question was posted lot of time, but i'm not able to find help from the previous post.

I have to index a csv file that every night is rotated/overwritten (same name, same folder) even if it has

the same contents.

In the inputs.conf i have set crcSalt = <SOURCE>

unfortunately the newly files are not loaded, i'm missing additional setting ?

Thanks

G.

Labels (1)
0 Karma
1 Solution

giulioBalza
Path Finder

i have found a solution adding the following lines to props.conf

[source::<full-pathname>]
CHECK_METHOD = modtime

in this way the timestamp is used instead of file name.

thanks @gcusello to address me.

Regards,

G.

View solution in original post

0 Karma

giulioBalza
Path Finder

Ciao Giuseppe,

how can i set the conf file to get log file re-indexed ?

thanks,

G.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @giulioBalza,

the check is on the filename, if you rename the file it will be reindexed (using crcSalt).

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @giulioBalza,

did you tried to not use crcSalt?

this option is useful to input logs from files that contain the same logs with different names, if you have the same name you don'r index it, even if you have new logs.

Ciao.

Giuseppe

0 Karma

giulioBalza
Path Finder

Hi @gcusello ,

thank you for the answer, my outcome is to reindex the log file even if it is equal to the previous one.

Regards,

G.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @giulioBalza,

the crcSalt runs if you have a different file name.

ciao.

Giuseppe

0 Karma

giulioBalza
Path Finder

i have found a solution adding the following lines to props.conf

[source::<full-pathname>]
CHECK_METHOD = modtime

in this way the timestamp is used instead of file name.

thanks @gcusello to address me.

Regards,

G.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @giulioBalza,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...