Parse log file without trailing newline
-
Hi.
I have a log parser for TeamViewer's "Connections_incoming.txt". Example file attached.
It works when i manually add a new line with a trailing newline (CRLF), but TeamViewer doesn't add a newline at the end of new log entries, it's added at the beginning (which means the log file has an empty row at the top).How can I make NetXMS notice new log entries when they doesn't end with CRLF?
While I'm at it, if I use named captures, how do I reference them by name in the Event Message?
(?<ID>.*?)\t(?<RemoteClient>.*?)\t(?<StartTime>.*?)\t(?<EndTime>.*?)\t(?<LoggedonUser>.*?)\t(?<Action>.*?)\t(?<GUID>.*?)\t
-
It is not possible without changes in log parser code. Named capture groups also not supported. I've added feature requests for both:
https://track.radensolutions.com/issue/NX-2312
https://track.radensolutions.com/issue/NX-2313Best regards,
Victor -
Ah, ok. Thank you very much!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login