Hello,
I have simple log:
2016.03.21 10:52:10.966 1 AsyncPosJeasi.Cfg.read INFO: -------------------- version 2.3.73.19 --------------------
2016.03.21 10:52:10.971 1 AsyncPosJeasi.XmlFile.getElementValue CONFIG: LogLevel=FINER
2016.03.21 10:52:10.974 1 AsyncPosJeasi.XmlFile.getElementValue CONFIG: DelLogDaysOld=100
Trying to import in LogMX using Simple parser. First field I define is Timestamp.
But when I tried to write Timestamp format Parsed entries becomes empty.
What is wrong with my format?
Defining Timestamp parser
Moderator: admin
Re: Defining Timestamp parser
Hello,
Actually, your Timestamp format is good. LogMX did not manage to parse your logs because it doesn't match the log line pattern you specified: you told LogMX that a log line is only composed with a Timestamp. So if you finish the log line pattern, it works:
If you prefer, you can also use a Log4j/Logback pattern (more powerful), with the pattern %d{yyyy.MM.dd HH:mm:ss.SSS} %mx{foo} %c %p: %m
Xavier
Actually, your Timestamp format is good. LogMX did not manage to parse your logs because it doesn't match the log line pattern you specified: you told LogMX that a log line is only composed with a Timestamp. So if you finish the log line pattern, it works:
If you prefer, you can also use a Log4j/Logback pattern (more powerful), with the pattern %d{yyyy.MM.dd HH:mm:ss.SSS} %mx{foo} %c %p: %m
Xavier