Answer the question
In order to leave comments, you need to log in
Zabbix parses penultimate line in log file?
Good day. I'm trying to set up log file parsing through Zabbix. After updating the file, zabbix for some reason parses the penultimate line. Those. There are three lines in the file. I add the fourth line, save it, and the zabbix agent sends the third line to zabbix, and so on.
Why could this be?
I use the following expression: log["C:\script\backup.log",,,"1"]
Zabbik version 4.0.11
Answer the question
In order to leave comments, you need to log in
The decision turned out to be banal. There must be a blank line after each line. I did it with my hands, hence I did not have the last empty line. The script automatically creates a line with data and the last empty line.
Try to add not in the editor, but as a logger.
Zabbix has all sorts of algorithms for checking if the file is updated, perhaps the editor is doing something wrong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question