There is a simple text file that have to be parse by using log parser.
Just I started using log parser but not understanding What is its parsing limit. I mean Can i do such thing by using logparser
TextLine to parse:
1022303Name WXP3
This I have to parse like
First digit 1 is row name
Next three digit 022 is errorNumber
next three digit 303 is UserID
next ten char Name is UserName
next 4 char WXP3 is SystemName
I am not able to understand can we do this query from log parser or not…
If yes then give any sample query.
ANY OTHER TOOL TO PERFORM THIS IS MOST WELCOMED
You want the SUBSTR function.
This assumes the lengths are really set to a particular size.
temp.txt text used above:
Since it’s been linked to before, I’ll also point you to Log Parser Plus, which I ‘run,’ and may be of some help with other log parser functions.