ratibor78 / geostat

GeoStat, Python script for parsing Nginx and Apache logs files and getting GEO data from incoming IP's.
MIT License
69 stars 20 forks source link

help me #22

Open ascomputer opened 1 year ago

ascomputer commented 1 year ago

why i don't get result in grafana this is my settings.ini file is there any error? Thank you

[NGINX_LOGS]

Path for the log file (Nginx)

logpath = localhost:/var/log/nginx/access.log

[GEOIP]

Path for the GEOIP DB file

geoipdb = ./geostat/GeoLite2-City.mmdb

[INFLUXDB_VERSION]

Version of the InfluxDB, 1 = old 1.8 and early, 2 = new 2.0 and more

Set this parameter to 1 if you prefer to use an old InfluxDB version like 1.8

Or set this parameter to 2 if you plan to use InfluxDB version 2.1 or modern

version = 2

[INFLUXDB1]

This part of the config will be used only when [INFLUXDB_VERSION] set to 1

Database URL

host = INFLUXDB_SERVER_IP

port = 8086

Database name

database = INFLUXDB_DATABASE_NAME

HTTP Auth

username = INFLUXDB_USER_NAME

password = INFLUXDB_USER_PASSWORD

Measurement name

measurement = geodata

[INFLUXDB2]

This part of the config will be used only when [INFLUXDB_VERSION] set to 2

InfluxDB server URL

url = localhost:8086

Token for authentication

token = my token

Organization - the name of the organization you wish to write to

organization = asc

Destination bucket to write into

bucket = asc

Measurement name

measurement = geodata

ratibor78 commented 1 year ago

Hi @ascomputer, I'll check your situation soon, now I'm not under the laptop.

ratibor78 commented 10 months ago

Hi do you still have issues with getting data to Grafana and InfluxDB ?