Re: Sorting out of sequence log Apache log file
- From: "Allen K. Smith" <lazlor@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 13:19:41 -0700
On Wednesday 26 April 2006 13:13, Chris W. Parker wrote:
Allen K. Smith <mailto:lazlor@xxxxxxxxxxxxxxxxxx>Can you copy a couple of lines in? I was just using a generic apache log as an example, so the field positions may be wrong..
on Wednesday, April 26, 2006 1:04 PM said:
sort -t[ -k 2.4,6M -k 2.1,2n access_log
Maybe I'm not using it correctly but that made the file even worse.
# sort -t[ -k 2.4,6M -k 2.1,2n Feb-14.log > Feb-14_sorted2.log
sort -t[ -k 2.4,6M -k 2.1,2n -k 2.13,19n
would catch the timestamps as well (d'oh).
With a handful of example lines should be able to make it exact, it there enough data in the source file to give you what you need.
After about a minute I got back a file with the log entries mixed up
even more. Did I do something wrong?
Thanks,
Chris.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- RE: Sorting out of sequence log Apache log file
- From: Chris W. Parker
- RE: Sorting out of sequence log Apache log file
- Prev by Date: RE: Sorting out of sequence log Apache log file
- Next by Date: RE: Sorting out of sequence log Apache log file
- Previous by thread: RE: Sorting out of sequence log Apache log file
- Next by thread: RE: Sorting out of sequence log Apache log file
- Index(es):
Relevant Pages
|