Getting Data In

2 files same data indexed

safe_splunk
Explorer

Hi,

I have 2 files with 1.log and 1.log.gz but they have exact same data. I see that indexer indexes both somehow.

firstTime lastTime recentTime source totalCount type
1392760800 1392847199 1392847202 /20140219.log 9795685 sources
1392760800 1392847199 1393110875 /20140219.log.gz 9795685 sources

any idea to have only index 1 of the double data with different file names.!

Tags (1)
0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

You will want to use a whitelist in inputs.conf

[monitor:///your/path/to/monitor]
whitelist = \.log$
sourcetype = your_sourcetype

This will exclude anything that doesn't end in .log.

0 Karma

Ayn
Legend

What does the monitor section for this input in your inputs.conf contain?

0 Karma
Get Updates on the Splunk Community!

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 ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...