Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-05-2004, 01:49 AM   #1
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
personalised logger - need some help

I am creating my own log sorter.. at the moment I am working on filtering my squid logs.

at the moment i have a script that
seperates the log into ip addresses
then deletes any log files created that are empty..

What i want to do now ideally is to list out how many times an address was accessed instead of having 50 entries for (including sub pages and images so including /furoms /contact.htm etc etc) the log file would show

50 - www.linuxquestions. i would also like to get rid of the text i dont want.

sooo... this is a squid log:

1078195520.070   1299 TCP_MISS/200 1415 POST - DIRECT/ text/html
1078195522.071     48 TCP_IMS_HIT/304 214 GET - NONE/- image/gif
1078195522.090     18 TCP_IMS_HIT/304 214 GET - NONE/- image/gif
so i would have that to come out as

3 -

any ideas?

i know their are log programs out there but i want to learn this kinda stuff

Old 03-05-2004, 01:50 AM   #2
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
then perhaps a way to sort the results after by name?? or hits??

actually looking at my post again that would come out as


OR 3

Last edited by chrisfirestar; 03-05-2004 at 01:51 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't locate OSCAR/ in @INC mijohnst Linux - Software 3 05-17-2005 05:15 PM
logger program or command? DJOtaku Linux - General 5 05-16-2005 01:22 AM
keystroke logger??? paugros Linux - Security 18 03-24-2005 12:06 PM
syslog: using logger (please help test this) psychobyte Linux - Security 1 01-07-2005 06:26 PM
Looking for a shell logger CroMagnon Linux - Software 1 09-13-2004 09:40 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration