Ad Widget

Collapse

logrt with expression pointing today date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bakaczo2
    Junior Member
    • Apr 2023
    • 11

    #1

    logrt with expression pointing today date

    Hello,
    I need to monitor log, which is making new log file each day. I thought Date() function will be usable here, but format is different.

    Logfile patch look like this C:\patch\to\log and its same for each from above 200 computers, but name of logfile created is different around 6 last characters of file.

    2023-04-21-XXXYYY.log

    Date is today for the file, tomorrow will be new file created starting with tomorrow date. It's important for me because I don't want to pull years of logs to zabbix server.... XXX is three letters, same for all computers, but difference is in YYY digit, which is individual for all computers.

    I appreciate any advice in this topic, earlier i found topic in which Dimitry explaining how to solve that question, but I can't find it anymore
Working...