

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Problem parsing a file with delimiter
Hi,
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
how is the separator line in the parser?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
It is not visible but do you have spaces between the "|"?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
No, there are no spaces around "|"
The sample log looks like this :
|77109|||60849||||||||||||||||||||||||316112087|No|
A total of 86 tokens are present in a log line.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Any help on this please !!!!
Regards,
Sumanth