LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-13-2018, 08:42 AM   #16
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled

Hi trying to set up AWstats but i am getting the below error.
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
 
Old 12-13-2018, 08:45 AM   #17
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
There's 3 IP addresses in there, and they are all part of a reserved range, this would indicate to me that any public external traffic is being passed through a NATing firewall. It's possible that your firewall is setting something like the forwarded-for header in the requests but your server isn't configured to log them.

Even with the "real" IP addresses in the log unless you use analytics tracking code (with cookies) in your application you will have to make guesses and assumptions. For example, without some form of unique browser cookie you won't be able to tell if there are multiple users behind a single IP. Take an example of a company that has 100 users behind a firewall, you'll see only the one entry for the company "exit" IP in your logs so you may only count it as 1.

Welcome to the fun world of HTTP logs!
Makes sense. How can i find tracking code
 
Old 12-13-2018, 08:46 AM   #18
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dc.901 View Post
Yes, you have to install this on your server.
It also shows the IP address(es); where do you see that it does not?

Checkout this example: https://www.nltechno.com/awstats/aws...h=04&year=2018
Thanks. it works for internal ip addresses

Last edited by 1s440; 12-14-2018 at 07:40 AM.
 
Old 12-13-2018, 09:02 AM   #19
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by 1s440 View Post
Makes sense. How can i find tracking code
There are any number of solutions available, stick "website analytics" in to your favourite search engine.

Personally I use Google Analytics for my sites.

Edit: And now I'm just waiting for the blah blah blah privacy blah blah evil corporation talking crap posts.

Last edited by TenTenths; 12-13-2018 at 09:04 AM.
 
Old 12-13-2018, 09:39 AM   #20
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
webalizer does a pretty good job of capturing and graphing domain and web page usage by parsing the web server logs.
By default, it will summarize and report statistics for the last 12 months.
[To clarify, it starts with the logs that are available, typically one month's worth, but it will continue to gather statistics and "roll over" at the end of a year...however, I note I have several sites configured to keep 24 months of stats]

But, yes, the OP has challenges in that what's being recorded in the logs are all internal addresses. They need to identify why that's happening.

Last edited by scasey; 12-13-2018 at 09:44 AM.
 
Old 12-13-2018, 10:29 AM   #21
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by scasey View Post
But, yes, the OP has challenges in that what's being recorded in the logs are all internal addresses. They need to identify why that's happening.
Perhaps there is a proxy in front of Apache2, maybe Varnish or something. If that is the case then maybe look at mod_remoteip, which has replaced mod_rpaf, or something equivalent.
 
Old 12-14-2018, 04:19 AM   #22
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
webalizer does a pretty good job of capturing and graphing domain and web page usage by parsing the web server logs.
By default, it will summarize and report statistics for the last 12 months.
[To clarify, it starts with the logs that are available, typically one month's worth, but it will continue to gather statistics and "roll over" at the end of a year...however, I note I have several sites configured to keep 24 months of stats]

But, yes, the OP has challenges in that what's being recorded in the logs are all internal addresses. They need to identify why that's happening.
Webalizer filters the traffic of bot?

Last edited by 1s440; 12-14-2018 at 04:30 AM.
 
Old 12-14-2018, 07:38 AM   #23
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
webalizer does a pretty good job of capturing and graphing domain and web page usage by parsing the web server logs.
By default, it will summarize and report statistics for the last 12 months.
[To clarify, it starts with the logs that are available, typically one month's worth, but it will continue to gather statistics and "roll over" at the end of a year...however, I note I have several sites configured to keep 24 months of stats]

But, yes, the OP has challenges in that what's being recorded in the logs are all internal addresses. They need to identify why that's happening.
yes all are internal, in between there is a reverse proxy whenever the customer tries to connect to the webserver it redirects to internal ip address. itshard to track external ip address
 
Old 12-14-2018, 11:43 AM   #24
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by 1s440 View Post
Webalizer filters the traffic of bot?
It doesn’t filter anything. It just collates and graphs usage for a domain.
Edit: More correctly, for the traffic recorded in a log file...we just insure that every domain is using a unique log file.

Last edited by scasey; 12-14-2018 at 04:53 PM.
 
Old 12-15-2018, 02:29 AM   #25
KIOPRET
LQ Newbie
 
Registered: Nov 2018
Posts: 20

Rep: Reputation: 1
The User Agent string should help you, try using it, the thing's not difficult to use, if you have access to the portal and use User Agent everything should be ok
 
Old 12-18-2018, 03:29 AM   #26
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Has any one used piwik analytics before?
 
Old 12-19-2018, 08:13 AM   #27
dogpatch
Member
 
Registered: Nov 2005
Location: Central America
Distribution: Mepis, Android
Posts: 490
Blog Entries: 4

Rep: Reputation: 238Reputation: 238Reputation: 238
Why not write your own traffic report, using a simple php script included in all the pages you want to track. Much easier and less overhead than third party analytics, and you have much more control over what information to report on. I did this years ago and quickly learned how to distinguish between robot traffic, my own accesses, one-time visitors, and repeat visitors.
 
Old 12-19-2018, 05:46 PM   #28
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I second writing your own to start with - there's a lot you need to understand as you can see from previous comments, and the best way is to roll your own (initially).
Eventually you may decide to use a pre-written tool, but even the effort of trying to do your own will teach you a lot about how to choose the right tool for you.

As above, you can never be really sure about counting unique visitors, but you can come reasonably close.

HTH
 
  


Reply



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
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 02:48 AM
Linux - Determine number of unique hosts connected to server linux_linux Linux - Networking 2 03-15-2008 09:41 PM
pls help on how i can generate 4 digit random number that are unique within the set icylicious Programming 7 08-22-2006 01:00 PM
Trying to get unique system id (serial number) with FC4 dmattice Linux - Hardware 2 01-21-2006 05:42 PM
Unique identify motherboards (ID / serial number). How to? FredKroket Programming 2 05-12-2005 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration