Main key for visits is now remote_ip and not remote_addr

This commit is contained in:
Gregory Soutade
2023-05-21 11:04:40 +02:00
parent 7507b8e77f
commit 7ef0911fa7
11 changed files with 28 additions and 27 deletions

View File

@@ -39,7 +39,7 @@ Output files :
Statistics creation :
visits :
remote_addr =>
remote_ip =>
browser
month_stats :
@@ -99,7 +99,7 @@ class IWLAPostAnalysisBrowsers(IPlugin):
for (k, super_hit) in stats.items():
if not 'browser' in super_hit:
for r in super_hit['requests'][::-1]:
for r in super_hit['requests']:
user_agent = r['http_user_agent']
if not user_agent: continue

View File

@@ -45,7 +45,7 @@ Output files :
None
Statistics creation :
remote_addr =>
remote_ip =>
feed_parser
feed_name_analysed
feed_parser_last_access (for merged parser)

View File

@@ -66,13 +66,13 @@ Output files :
Statistics creation :
visits :
remote_addr =>
remote_ip =>
filtered
geo_location
Statistics update :
visits :
remote_addr =>
remote_ip =>
keep_requests
Statistics deletion :
@@ -92,7 +92,7 @@ class IWLAPostAnalysisFilterUsers(IPlugin):
raise Exception('Bad filter ' + ' '.join(_filter))
except Exception as e:
if field == 'ip':
_filter[0] = 'remote_addr'
_filter[0] = 'remote_ip'
if operator not in ('=', '==', '!=', 'in', 'match'):
raise Exception('Bad filter ' + ' '.join(_filter))
if operator == 'match':

View File

@@ -39,7 +39,7 @@ Output files :
Statistics creation :
visits :
remote_addr =>
remote_ip =>
ip_type
month_stats :

View File

@@ -41,7 +41,7 @@ Output files :
Statistics creation :
visits :
remote_addr =>
remote_ip =>
operating_system
month_stats :