Mailing List Archive

Configuring Analog, Host IP not displayed correctly
Hi everybody,

I have searched for a solution to this problem, but I have been unable
to find anything, I'm afraid I'm still a bit wet behind the ears when it
comes to setting up webserver stuff.
Whenever a report is generated, it seems that analog only reads the 2
first numbers of the host IP, this is the Organisation report for instance:

reqs %bytes organisation
67 88.09% 78
15 11.67% 205.142
2 0.16% [domain not given]
1 66.249
1 0.08% 216.145

Analog is of course unable to resolve that:

reqs %bytes domain
84 99.84% [unresolved numerical addresses]
2 0.16% [domain not given]

I have tried making a custom LOGFORMAT command, however that seemed to
cause more problems than it solved.

The apache logfiles that are being read looks like this:
78.32.4.67 - - [04/Mar/2008:22:51:17 +0000] "GET /analog/type.png
HTTP/1.1" 200 3386
"http://www.deskgnome.org/analog/analog-2008.03-report.html" "Opera/9.24
(X11; Linux i686; U; en)"
78.32.4.67 - - [04/Mar/2008:22:51:17 +0000] "GET /analog/req.png
HTTP/1.1" 200 3914
"http://www.deskgnome.org/analog/analog-2008.03-report.html" "Opera/9.24
(X11; Linux i686; U; en)"

And the apache2.conf logformat looks like this:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined

Does anyone have any idea where it goes wrong, and how to make things
work as they should? Any help will be greatly appreciated.

Leonard
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Configuring Analog, Host IP not displayed correctly [ In reply to ]
Leonard Kramer <fingolfin@woozle.org> wrote:
> Hi everybody,
>
> I have searched for a solution to this problem, but I have been unable
> to find anything, I'm afraid I'm still a bit wet behind the ears when
> it comes to setting up webserver stuff.
> Whenever a report is generated, it seems that analog only reads the 2
> first numbers of the host IP, this is the Organisation report for
> instance:
>
> reqs %bytes organisation
> 67 88.09% 78
> 15 11.67% 205.142
> 2 0.16% [domain not given]
> 1 66.249
> 1 0.08% 216.145
>
> Does anyone have any idea where it goes wrong,

There's nothing going wrong - That's the Organization Report, which shows what Organizations users are coming from. If you don't have DNS resolution set up, then Organizations are calculated by grouping IP addresses.

> and how to make things
> work as they should? Any help will be greatly appreciated.

It sounds like you actually want the Host Report, which lists the IP address of individual users. You need to turn it on by adding HOST ON to your analog.cfg file.

You might also want to look into doing DNS lookups. While your logfiles are relative small (a few thousand entries), you can have Analog do the DNS lookups by adding these entries to your analog.cfg file:

DNSFILE dnscache
DNS WRITE

http://analog.cx/docs/dns.html
http://analog.cx/docs/reports.html

Aengus

+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Configuring Analog, Host IP not displayed correctly [ In reply to ]
Thanks alot. It's nice to receive such a friendly reply, even though the
question was a bit silly it seems.

Leonard

Aengus wrote:
> Leonard Kramer <fingolfin@woozle.org> wrote:
>
>> Hi everybody,
>>
>> I have searched for a solution to this problem, but I have been unable
>> to find anything, I'm afraid I'm still a bit wet behind the ears when
>> it comes to setting up webserver stuff.
>> Whenever a report is generated, it seems that analog only reads the 2
>> first numbers of the host IP, this is the Organisation report for
>> instance:
>>
>> reqs %bytes organisation
>> 67 88.09% 78
>> 15 11.67% 205.142
>> 2 0.16% [domain not given]
>> 1 66.249
>> 1 0.08% 216.145
>>
>> Does anyone have any idea where it goes wrong,
>>
>
> There's nothing going wrong - That's the Organization Report, which shows what Organizations users are coming from. If you don't have DNS resolution set up, then Organizations are calculated by grouping IP addresses.
>
>
>> and how to make things
>> work as they should? Any help will be greatly appreciated.
>>
>
> It sounds like you actually want the Host Report, which lists the IP address of individual users. You need to turn it on by adding HOST ON to your analog.cfg file.
>
> You might also want to look into doing DNS lookups. While your logfiles are relative small (a few thousand entries), you can have Analog do the DNS lookups by adding these entries to your analog.cfg file:
>
> DNSFILE dnscache
> DNS WRITE
>
> http://analog.cx/docs/dns.html
> http://analog.cx/docs/reports.html
>
> Aengus
>
> +------------------------------------------------------------------------
> | 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
> +------------------------------------------------------------------------
>

+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------