BIG syslog and daemon.log - OH3 INFLUX

Hello,
Today I checked that log files for syslog and daemon.log are very big (about 19GB).

And in these two files I get this logs:

Dec 19 15:04:34 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:34 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 1f47110c-4203-11eb-8249-dca6327a27e8 4320
Dec 19 15:04:35 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:35 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 1fe10027-4203-11eb-824a-dca6327a27e8 6085
Dec 19 15:04:36 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:36 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 207b2bd4-4203-11eb-824b-dca6327a27e8 4412
Dec 19 15:04:36 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:36 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 208b8793-4203-11eb-824c-dca6327a27e8 5068
Dec 19 15:04:36 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:36 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 20c9ee42-4203-11eb-824d-dca6327a27e8 5092
Dec 19 15:04:37 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:36 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 20e9ce02-4203-11eb-824e-dca6327a27e8 352364
Dec 19 15:04:37 openHABianDevice influxd[876]: [httpd] 127.0.0.1 - openhab [19/Dec/2020:15:04:37 +0100] "POST /write?db=openhab_db&rp=autogen&precision=n&consistency=one HTTP/1.1" 204 0 "-" "okhttp/3.14.4" 212f4435-4203-11eb-824f-dca6327a27e8 5399

How to turn this logs off??

Cześć :slight_smile:

You must turn of http loggin in influxdb.conf:

  1. Goto the configuration file
    sudo nano /etc/influxdb/influxdb.conf

  2. Find section [http] and edit:

    # Determines whether HTTP request logging is enabled.
    log-enabled = false

  3. restart influx
    sudo service influxdb restart

  4. check the daemon.log to see if it helped

1 Like

hm, i did change all as written above, but still the samy http query logs are written into log files…very frequent, so system is full after a few weeks.

Any idea?

See influxdb logs to /var/log/messages by default · Issue #8319 · influxdata/influxdb · GitHub that thread mentions a few additional methods to suppress logging.

I set additionally in influxdb.conf :

[logging]
  # Determines which log encoder to use for logs. Available options
  # are auto, logfmt, and json. auto will use a more a more user-friendly
  # output format if the output terminal is a TTY, but the format is not as
  # easily machine-readable. When the output is a non-TTY, auto will use
  # logfmt.
  # format = "auto"

  # Determines which level of logs will be emitted. The available levels
  # are error, warn, info, and debug. Logs that are equal to or above the
  # specified level will be emitted.
  level = "error"