Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Analog: Help

FROM TO daily time window (possible?)

 

 

Analog help RSS feed   Index | Next | Previous | View Threaded


kuku at kukulies

Jul 23, 2009, 1:20 AM

Post #1 of 5 (1398 views)
Permalink
FROM TO daily time window (possible?)

I would like to confine the statitics to only consider page visits
within a certain daily time window, e.g. 7 am to 7 pm.

Is this possible with a FROM/TO syntax?

TIA

Christoph

+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------


KlausRusch at atmedia

Jul 23, 2009, 2:10 AM

Post #2 of 5 (1323 views)
Permalink
Re: FROM TO daily time window (possible?) [In reply to]

Christoph Kukulies wrote:
> I would like to confine the statitics to only consider page visits
> within a certain daily time window, e.g. 7 am to 7 pm.
>
> Is this possible with a FROM/TO syntax?
Hi Christoph,

FROM/TO can only specify a contiguous timeframe, so you would be limited
to a single 7am to 7pm window on a given day. To extract certain times
on multiple days you will need to filter the logs prior to piping them
to analog, or using logfile preprocessing
http://analog.cx/docs/logfile.html#UNCOMPRESS.

--
Klaus Johannes Rusch
KlausRusch [at] atmedia
http://www.atmedia.net/KlausRusch/

+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------


kuku at kukulies

Jul 23, 2009, 2:48 AM

Post #3 of 5 (1321 views)
Permalink
Re: FROM TO daily time window (possible?) [In reply to]

Klaus Johannes Rusch schrieb:
> Christoph Kukulies wrote:
>> I would like to confine the statitics to only consider page visits
>> within a certain daily time window, e.g. 7 am to 7 pm.
>>
>> Is this possible with a FROM/TO syntax?
> Hi Christoph,
>
> FROM/TO can only specify a contiguous timeframe, so you would be
> limited to a single 7am to 7pm window on a given day. To extract
> certain times on multiple days you will need to filter the logs prior
> to piping them to analog, or using logfile preprocessing
> http://analog.cx/docs/logfile.html#UNCOMPRESS.
>
Thanks, Klaus. I was already suspecting that it wouldn't work with FROM/TO.
I tried FROM *:0700 TO *:1900 or FROM :0700 TO :1900 but this triggered
syntax errors,
although it wouldn't problably very difficult to implement this as a
feature, but I'm not sure how "frozen" analog6.0 is, anyway :)
I couldn't get from the link you gave me, though, in the first place,
how this would lead me to a
means to preprocess the logs?

I could run a self crafted program that greps/seds/awks through the logs
in the analog.bat job
and have analog.bat (.exe) work on the proprocessed files.

But I didn't find a config-keyword that specifies a preprocessor on the
log file.

--
Christoph

+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------


KlausRusch at atmedia

Jul 23, 2009, 5:53 AM

Post #4 of 5 (1330 views)
Permalink
Re: FROM TO daily time window (possible?) [In reply to]

Christoph Kukulies wrote:
> I couldn't get from the link you gave me, though, in the first place,
> how this would lead me to a
> means to preprocess the logs?
Correct. If you cannot get to the documentation at
http://analog.cx/docs/logfile.html#UNCOMPRESS, check the page "Choosing
a logfile" in your local analog documentation. Basically you specify the
preprocessor as the program to "uncompress" a file (of course if the
files are really compressed you will need to the actual uncompression
yourself then), e.g.

UNCOMPRESS *.gz /var/sample/filter.sh

--
Klaus Johannes Rusch
KlausRusch [at] atmedia
http://www.atmedia.net/KlausRusch/
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------


kuku at kukulies

Jul 23, 2009, 6:47 AM

Post #5 of 5 (1322 views)
Permalink
Re: FROM TO daily time window (possible?) [In reply to]

Klaus Johannes Rusch schrieb:
> Christoph Kukulies wrote:
>> I couldn't get from the link you gave me, though, in the first place,
>> how this would lead me to a
>> means to preprocess the logs?
> Correct. If you cannot get to the documentation at
> http://analog.cx/docs/logfile.html#UNCOMPRESS, check the page
> "Choosing a logfile" in your local analog documentation. Basically you
> specify the preprocessor as the program to "uncompress" a file (of
> course if the files are really compressed you will need to the actual
> uncompression yourself then), e.g.
>
> UNCOMPRESS *.gz /var/sample/filter.sh
>
I see the trick. Thanks.

--
Christoph

+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Analog help RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.