VMware Cloud Community
vMarkusK1985
Expert
Expert
Jump to solution

File Handling of the Windows Agent

Hello,

I have at the moment a Problem with the File Handling of the Windows Agent.

My Situation is:

  • I have a specific File
  • Content of the File is not appended, the first Line is overwritten

Example:

File Content #1

Warning 03/09/2016 13:00 BSM/CSM SessionError "[138:742] Backup session "2016/03/09-51" of the backup specification ...

File Content #2

Warning 03/09/2016 14:00 BSM/CSM SessionError "[138:742] Backup session "2016/03/09-52" of the backup specification ...

The Agent does not recognize the new content… If I add a line everything is fine.

Agent Config:

[filelog|HPDPSessions]

directory=D:\Syslog\

include=*.log

charset=UTF-16LE

tags={"appname":"HPDPSessions"}

exclude_fields=hostname

Is there a workaround possible?

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
sflanders
Commander
Commander
Jump to solution

The agent only supports collecting appended log messages. Why are lines overridden?

Hope this helps! === If you find this information useful, please award points for "correct" or "helpful". ===

View solution in original post

0 Kudos
5 Replies
sflanders
Commander
Commander
Jump to solution

The agent only supports collecting appended log messages. Why are lines overridden?

Hope this helps! === If you find this information useful, please award points for "correct" or "helpful". ===
0 Kudos
vMarkusK1985
Expert
Expert
Jump to solution

The software that creates this Log File has this behavior hardcoded...

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
sflanders
Commander
Commander
Jump to solution

No workaround to this today -- I suspect all other syslog agents would have the exact same problem, no?

Hope this helps! === If you find this information useful, please award points for "correct" or "helpful". ===
0 Kudos
vMarkusK1985
Expert
Expert
Jump to solution

Think so...

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
sflanders
Commander
Commander
Jump to solution

So anything that does not append to the end of the file is often considered a configuration change, not a log event. There are configuration management agents that monitor for the changes to any part of a file. The agent is for log events today, not configuration management. I hope this helps!

Hope this helps! === If you find this information useful, please award points for "correct" or "helpful". ===
0 Kudos