Friday, February 22, 2013

Extracting one value from logged ascii packet data

Here is my personal trending tool for work, producing three columns space delimited file that can be imported into Excel

find . -name "*.log" -exec grep Keyword -H {} \; | sed -e 's/: 10/:10/' | awk '{print $1 " " $2 " " $68}' | sed -e 's/.l
og:2/.log: 2/' > ~/output.txt