I am trying to log a portion of the log file depending upon the "WorkOrderNumber" and "level".
The shell script i've written is as follows:-
cat input.log | awk '/\[WorkOrderNumber/' | awk /120600012/ | awk /INFO/ | tee log.vw
For a particular WorkOrderNumber, the record is very long (4253 characters).
When I run the script I get following message:-
awk: record `[2009-09-17 08:26]IN...' too long
record number 882
How to get rid of this error?
I don't want to tamper with input.log file.