14 Apr 2025
10:51 AM
- last edited on
15 Apr 2025
07:52 AM
by
MaciejNeumann
Hi Team,
I need to add below custom log path for log monitoring where file name will be in the yyyy-mm-dd.log format and we need only log levels Error from the log.
Path Location | File Name | Error Code, String, pattern match |
D:\logs\xxx.yyy | YYYY-MM-DD.log | ERROR |
As per documentation added the log in custom log path as d:\Logs\xxx.yy\*.logs under host>logmonitoring .
How can we ensure it is picking the exact file?
Where can I add the filter condition ?
Can someone give the right steps on how to add the custom logs with filter conditions
Thanks
14 Apr 2025 11:03 AM
Hi,
When you add a custom path, if should appears when you are creating log ingestion rule.
Best regards
15 Apr 2025 05:54 AM - edited 15 Apr 2025 09:01 AM
Hi @Shal
You can easily ingest custom logs.
Option 1.
Option 2.
As @AntonPineiro mentioned, you can ingest the custom log source and then filter it.
You can check the results in the Logs at managed and saas also.
I hope it helps.
Best regards,
János
16 Apr 2025 01:30 PM
Thankyou @Mizső .The detailed explanation is very helpful.
1)I can see option 1 is already enabled in my environment .So Can I also have both Option 1 and Option 2?
2)I have added ingestion rule as Log source - is any of custom log and
log level is any of ERROR.
But it was showing for WARN log levels also.
Then I tried adding processing rule to filterout WARN, and it was showing only for ERROR log levels. But this rule will apply to all logs irrespective of host.
Also when am giving path as D:\logs\xxx\Errors\#.log I can see the filename is showing as today's date like 2025-04-16. However it is not showing the older files (like yesterday's or other dates even when we take custom date picker).
Any recommendations do you have?
Thanks!