Monitoring Splunk

not monitored similer name local files on windows

dhirendra761
Contributor

My logs files are having named as "xxxx*.log.2018-06-27, xxxx*.log.2018-06-26, xxxx*.log.2018....."
it differntiate with date when it was genrated.
Now i want to monitor the directory for log files.
when i search for the log in directory using splunk, the source count is only 1. It takes only 1file for search.

All log files having different contents. So I am not able to search for whole log files.
Please suggest in this case.

Let me know in case of more info required.alt text
alt text

Tags (1)
0 Karma

woodcock
Esteemed Legend

Try this:

[monitor://D:\Splunk\Logs\*\dd\*.log]
disabled = false
sourcetype = dd
0 Karma

dhirendra761
Contributor

Thanks for input.
But It doesn't work. If you rename the log files with different name then it work and available for the search.

0 Karma

sudosplunk
Motivator

Modify your monitor stanza to below:

[monitor://D:\Splunk\Logs\uVisit\dd\Visit*.log*]
disabled = false
sourcetype = dd

OR

[monitor://D:\Splunk\Logs\uVisit\dd]
disabled = false
whitelist = \.log\.\d+|\.log$
sourcetype = dd
0 Karma

dhirendra761
Contributor

Thanks for input.
But It doesn't work. If you rename the log files with different name then it work and available for the search.

0 Karma

sudosplunk
Motivator

For the .log.date files, file type is not Text document. Can you open and read the files with date extension. If yes, then above monitor stanza should work as it is using *.log* which matches all files under dd directory.

0 Karma

renjith_nair
Legend

@dhirendra761 , hows your inputs.conf configured?

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

dhirendra761
Contributor

I will share the links for file directory which i used currently.

0 Karma

dhirendra761
Contributor

@renjith.nair Hi Renjith,
input.conf is configured as below:
[monitor://D:\Splunk\Logs\uVisit\dd]
disabled = false
sourcetype = dd

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