Problem parsing a file with delimiter
I have been trying to parse a file with fixed format logs. Fields are separated by "|" .
So, I have used "|" as delimiter. But the logs are not getting parsed. When checked the agent.log it shows a warning message
"Found less tokens than expected [1<86] for input [............]" . I don't know why it is taking the entire log line as single token. And one more thing is the first token in the log line - timestamp - is getting parsed and the rest tokens are getting dropped
Also attaching the error screenshot here.
Any help on this please.
No, there are no spaces around "|"
The sample log looks like this :
A total of 86 tokens are present in a log line.