Getting Data In

monitor stanza - help

rakesh_498115
Motivator

Hi.

I have a common log path in my server say logs/project1/ which has perflogs and debuglogs i.e like this Appt_Perflog_ms1,Appt_Perflog_ms2 .. ,ABC_Perflog_ms1,ABC_Debug_ms1.txt .. Now i need these logs i.e perflogs to move to perf index and debug to debug index. so for that i have used the following monitor stanza.

[monitor:///logs/project1/*_Debug_ms*.txt]
blacklist = \.(gz)$
whitelist = ABC_Debug_ms[1-4]{1}.txt$ 
disabled = false
followTail = 0
recursive = false
sourcetype = debug_log
index = debuglogs



[monitor:///logs/project1/*_Perflog_ms*.txt]
blacklist = \.(gz)$
whitelist = (Appt_Perflog_ms[1-4]{1}.txt$ | ABC_Perflog_ms[1-4]{1}.txt$ )
disabled = false
followTail = 0
recursive = false
sourcetype = perf_log
index = perflogs

but this seems to be not working ?? any clue what happened here ?? is the **_* in monitor stanza causing this issue..pls help me..

Tags (2)
0 Karma

lukejadamec
Super Champion

You don't need the '_'. Have you tried this?

[monitor:///logs/project1/*Debug*.txt]

[monitor:///logs/project1/*Perflog*.txt]

0 Karma
Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...