Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

AWStats LogFormat element for date and time

Reply to Post Add a New Topic
UserPost

5:16 am
May 6, 2009


Sravan.tech

Member

posts 9

Hi Jean,

I had an issue in parsing the date and time elements of my new ELF log files.

Current server generated date and time is {2009-04-28     00:30:57}, please don't consider those brackets.

You can find a tab space between date and time. THIS is something AWStats is not recognizing , even with LogSeperator "\\t" or "\\s+" and element %time2

But if i change the tab space to a single space, then AWStats is able to parse the logs.

Is there a way, may be some other time element instead of %time2, so that i can parse the logs with the current tab space between date and time in my log records ??

Thanks,

Sravan

5:40 am
May 6, 2009


Jean-Luc

Admin

posts 1125

Hi,

You can try sed to convert the original format to a format acceptable for AWStats.

This is an example of usage of sed  with AWStats :

LogFile="sed -e 's/\\t/ /g' /your_path/log_file.log |"

Reply to Post

Reply to Topic:
AWStats LogFormat element for date and time

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 3
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2712

Membership:

There are 257 Members
There have been 305 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)