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

%extraX and double quote field

Reply to Post Add a New Topic
UserPost

9:34 am
December 18, 2009


jippy

Guest

Hi all,

Do you know if the %extraX can be a double quote field ?

IE :

"My custom value"

"Normal value"

Thanks a lot ^_^

10:06 am
December 18, 2009


Jean-Luc

Admin

posts 1125

Hi,

There may be no spaces within %extraX . My understanding is that "blahblah" would be a valid field, but "blah blah" would not be valid.

You could use sed  to automatically remove the quotes and replace the spaces within the field by another character, like this:

- "blahblah" => blahblah

- "blah blah" => blah+blah

sed  is a Linux command and it can be called within the LogFile  directive to automate the format translation when the AWStats update is performed.

Here are two (not tested) examples of sed  used in the LogFile  directive:

LogFile="sed -e 's/\\\[([0-9][0-9][0-9])\\\]/\\1/g' /path/log_file.log |"

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

10:17 am
December 18, 2009


jippy

Guest

ok, thanks a lot for the information !

I wanted to be sure that there was no problem with my regex ^_^

Now I know why the space is not working 🙂

Reply to Post

Reply to Topic:
%extraX and double quote field

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:
6 + 8
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 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)