None of those settings should duplicate events.
PersistLogqueue TRUE
Writes the normal log queue to disk instead of RAM. Note that logqueue is written to disk when NXLog shuts down, regardless.
SyncLogqueue TRUE
Immediately syncs the logqueue to disk after each entry.
CacheFlushInterval always
Indicates that the in-memory value will be flushed to cache file after everytime a module sets a value. Default is 5seconds between flush
CacheSync TRUE
Bypasses filesystem buffering to force sync the cache to disk. Without this setting, the in-memory cache gets flushed to cache file and then waits on the filesystem to sync to disk.
If you are getting duplicate events then there is likely another setting in your config or source that is causing the duplications.
I would reference the rest of your config and see if something else may be causing it. As a troubleshooting step you could also flip the values on each of those settings to see which may be related to the duplicate messages.
Comments (3)
Thank you Zhengshi!
I realy see that after enable this configuration my logs come chaotic compared to the buffer in RAM.
I send via nxlog files from c:\test\YYYY-MM-DD.log. This is my client config:
This is my server config:
Any ideas please?
Hello,
Don't you mind to drop us some examples of input and output logs?
Because I can't see anything in your config which could duplicate entries so I would try to reproduce it.
Regards, Arch