S
S
sbcreed2019-09-03 18:48:50
System administration
sbcreed, 2019-09-03 18:48:50

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

3 answer(s)
S
sbcreed, 2019-09-07
@sbcreed

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.

K
ky0, 2019-09-03
@ky0

Any misunderstandings with newlines, maybe? Not on Windows repeats?

V
Vitaly Karasik, 2019-09-03
@vitaly_il1

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 question

Ask a Question

731 491 924 answers to any question