Ad Widget

Collapse

Log File Monitoring Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drseussofporn
    Junior Member
    • Feb 2015
    • 2

    #1

    Log File Monitoring Problem

    I'm having an odd problem with log file monitoring (not an event log, just a plaintext .log file). The Zabbix agent on a windows machine successfully pushes all log entries from the file being monitored except the very last entry (which just happens to be the one I care about). I have successfully gotten around this by writing the last entry twice to the file, but I can't think this is the right way to accomplish the goal.

    Has anyone else experienced this behavior?
  • morrolan
    Junior Member
    • Aug 2013
    • 15

    #2
    Duplicate.
    Last edited by morrolan; 24-02-2015, 15:02. Reason: Stupid mouse caused post to duplicate.

    Comment

    • morrolan
      Junior Member
      • Aug 2013
      • 15

      #3
      Have you tried just writing the newline character after each entry in the log, rather than at the beginning of the next line? I've experienced funny issues with newlines before, specifically around the last line.

      Comment

      Working...