LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2018, 04:16 AM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
analysis the log


I have a web page running apache on redhat , there are a apache access log , each day have a log , we have keep these old logs

I would like to do the analysis for the user access behavior , for example , which url they are most access , the peak time they access the web etc.

Would advise how to do such analysis .

Thanks
 
Old 08-29-2018, 04:34 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,283
Blog Entries: 3

Rep: Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127
Welcome.

What you describe has been quite easy to do in perl. There is even the Apache::Log::Parser module which does all the work of interpreting for the "common" and "combined" default log file formats. Though as you already know it is also possible to modify the log file format in Apache2 to be tab-delimited or something else easier to parse. Though that should be planned a bit.

If the log files have been rotated and compressed then you'll also have to have the script decompress them on the way in.

What have you tried so far and where are you stuck?
 
1 members found this post helpful.
Old 08-29-2018, 04:47 AM   #3
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
Welcome.

What you describe has been quite easy to do in perl. There is even the Apache::Log::Parser module which does all the work of interpreting for the "common" and "combined" default log file formats. Though as you already know it is also possible to modify the log file format in Apache2 to be tab-delimited or something else easier to parse. Though that should be planned a bit.

If the log files have been rotated and compressed then you'll also have to have the script decompress them on the way in.

What have you tried so far and where are you stuck?
I have the logs and just want to analyse these old logs for past access behaviour , not to check the future data , does this module helps ? except it , is there other tools may do such analysis ?

thanks
 
Old 08-29-2018, 04:59 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,590

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Quote:
Originally Posted by catiewong View Post
I have a web page running apache on redhat , there are a apache access log , each day have a log , we have keep these old logs

I would like to do the analysis for the user access behavior , for example , which url they are most access , the peak time they access the web etc.

Would advise how to do such analysis .

Thanks
There are some open source tools like webalizer, awstats.

Regards
 
1 members found this post helpful.
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Log analysis help newbie14 Linux - Security 10 11-05-2013 08:02 PM
log analysis amitm02 Linux - Wireless Networking 2 05-10-2006 06:40 AM
log analysis Madhusudhan Linux - Software 2 02-13-2006 11:06 PM
Lire (log analysis, log report) no report in Mandriva 2005 LE (desktop usage) Emmanuel_uk Mandriva 0 01-16-2006 03:11 AM
Log Analysis xptos Linux - Security 1 01-16-2003 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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