hey,
im using zabbix 3.4 on docker
i have an issue where the i try to log monitor but theres an issue because the log file changes every day,
it looks like that :
/var/log/logfile.log.5456454
now i have tried * at the end or [0-9] but it doesnt work.
so what i did is to build another item that this item value is the log file name -
like this :
ITEM1 = system.run[cd /var/ldt/log/ ; ls -trA1 |grep 'logfilename'| awk 'END{print}'] - so it gives me the newest log file - value will look like this = /var/log/logfile.log.456456
now is there a way to make item2 use item1 value ? like : log[$ITEM1VALUE, problem] ?
thanks
im using zabbix 3.4 on docker
i have an issue where the i try to log monitor but theres an issue because the log file changes every day,
it looks like that :
/var/log/logfile.log.5456454
now i have tried * at the end or [0-9] but it doesnt work.
so what i did is to build another item that this item value is the log file name -
like this :
ITEM1 = system.run[cd /var/ldt/log/ ; ls -trA1 |grep 'logfilename'| awk 'END{print}'] - so it gives me the newest log file - value will look like this = /var/log/logfile.log.456456
now is there a way to make item2 use item1 value ? like : log[$ITEM1VALUE, problem] ?
thanks
Comment