Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-04-2013, 10:56 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 26

Rep: Reputation: 0
Awstat not processing cloudfront logs.

This is my cloudfront log:

#Fields: date time x-edge-location sc-bytes c-ip cs-method cs(Host) cs-uri-stem sc-status cs(Referer) cs(User-Agent) cs-uri-query cs(Cookie) x-edge-result-type x-edge-request-id
2013-09-04 07:12:54 CDG51 2770 x.x.x.x GET /some-theme/js/jquery.some.url.js 200 Mozilla/4.0%20(compatible;%20MSIE%208.0;%20Windows%20NT%205.1;%20Trident/4.0;%20BTRS100127;%20GTB7.5;%20InfoPath.2;%20.NET%20CLR%202.0.50727;%20.NET%20CLR%203.0.4506.2152;%2 0.NET%20CLR%203.5.30729;%20.NET4.0C;%20.NET4.0E) - - Hit sdf4sf-sdFge55WOs-pxb2LPX2qXeiiC8kEDUVIeDTlFkiDw00Ci2A==

I am using logformat in awstat as below:
LogFormat="%date %time2 %x-edge-location %sc-bytes %c-ip %cs-method %cs(Host) %cs-uri-stem %sc-status %cs(Referer) %cs(User-Agent) %cs-uri-query %cs(Cookie) %x-edge-result-type %x-edge-request-id"

Awstat saying "AWStats did not found the LogSeparator in your log records." when trying to process the logs. I tried log separator as "\t" but it didnt help.

Can anyone tell me if logformat has problem or the LogSeparator ?

---------- Post added 09-04-13 at 08:27 PM ----------

Also getting the error on every line :
Corrupted record line xx (record format does not match LogFormat parameter)
Old 09-04-2013, 11:12 AM   #2
LQ Newbie
Registered: Apr 2010
Posts: 26

Original Poster
Rep: Reputation: 0
It worked after removing "%date" from Logformat and making LogSeparator ad \t


aws, awstats, cloud

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
Process Tomcat logs in AWSTAT Mustafa^Qasim Linux - Server 1 11-02-2011 05:54 AM
[SOLVED] Awstat is dropping all records Mustafa^Qasim Linux - Newbie 5 04-19-2011 08:50 AM
problem with installing awstat Linux - Server 2 01-08-2010 10:28 AM
Awstat installation issue time_trapper Linux - Software 3 04-01-2008 10:32 PM
awstat question yongitz Linux - Software 0 11-02-2006 05:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration