Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding import_logs.py , how to handle the X-forworded-for ? #6551

Closed
redbox-cdn opened this issue Oct 29, 2014 · 1 comment
Closed

Regarding import_logs.py , how to handle the X-forworded-for ? #6551

redbox-cdn opened this issue Oct 29, 2014 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@redbox-cdn
Copy link

Hi

I have one problem regarding X-forworded-for.

If X-forworded-for(proxy IP) and clientIP included in the logs, the visitor log on the piwik has only displayed proxy IP (this means not included clientIP)

In the other hand, If X-forworded-for(proxy IP) did not contain in the access log, the piwik has reported the client ip.

Here is the logformat

■Not via proxy server (it is OK)

  • clientip - - [29/Oct/2014:14:41:27 +0900] "GET /xxxxxx HTTP/1.1" 200 88497 "http://domain/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36

■Via proxy server (only the proxy IP address)
clientip proxyIP - - [29/Oct/2014:14:41:27 +0900] "GET /xxxxxx HTTP/1.1" 200 88497 "http://domain/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36

Please advise me whether My log format is mistaken or other solution.
I would like to report the client ip even if the access via proxy server.

Thanks!

@mattab
Copy link
Member

mattab commented Oct 30, 2014

I don't think this is a bug in Piwik unless you have a bug report?

feel free to ask in forums: http://forum.piwik.org/

see also this faq: http://piwik.org/faq/how-to-install/faq_98/

@mattab mattab closed this as completed Oct 30, 2014
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants