From 2f9d117a705b746685e04abc4367734bfdd4fa20 Mon Sep 17 00:00:00 2001 From: GilbN Date: Sun, 19 Jul 2020 21:10:34 +0200 Subject: [PATCH] changed default retention to 7d --- geoip2influx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geoip2influx.py b/geoip2influx.py index 2b178a0..acb9fd8 100644 --- a/geoip2influx.py +++ b/geoip2influx.py @@ -40,8 +40,8 @@ influxdb_port = env.get('INFLUX_HOST_PORT', '8086') influxdb_database = env.get('INFLUX_DATABASE', 'geoip2influx') influxdb_user = env.get('INFLUX_USER', 'root') influxdb_user_pass = env.get('INFLUX_PASS', 'root') -influxdb_retention = env.get('INFLUX_RETENTION','30d') -influxdb_shard = env.get('INFLUX_SHARD', '2d') +influxdb_retention = env.get('INFLUX_RETENTION','7d') +influxdb_shard = env.get('INFLUX_SHARD', '1d') geo_measurement = env.get('GEO_MEASUREMENT', 'geoip2influx') log_measurement = env.get('LOG_MEASUREMENT', 'nginx_access_logs') send_nginx_logs = env.get('SEND_NGINX_LOGS','true') @@ -311,4 +311,4 @@ if __name__ == '__main__': try: main() except KeyboardInterrupt: - exit(0) \ No newline at end of file + exit(0)