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
- Re: vsftpd beginners tutorial?
... Don't forget me Santa! ... Chris W. Parker a e'crit: ...
>>If you like I can send you my documentation of how I created my ... (RedHat) - RE: script to parse maillog
... Chris W. Parker wrote: ... > i found a few scripts online that
can give basic mail statistics, ... (RedHat) - Re: cannot get user directories to work (e.g. /~user)
... Chris W. Parker wrote: ... > What I can't get working is my user
directory, ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
... (RedHat) - Re: Basic Dumb Logging Question
... On Thursday 31 July 2003 12:04 pm, Chris W. Parker wrote: ... > monitor
dedicated to each tail -f do you? ... /"\ ASCII Ribbon Campaign against HTML \ /
email and proprietary format X attachments. ... (RedHat) - Re: [PHP] Code optimization: single vs. double quotes?
... On Tuesday, October 28, 2003, at 04:29 AM, Chris W. Parker wrote: ...
>> table cell, but when you work this style through a big ... >> app,
it's a huge pain to make any ... (php.general)