Discussion:
[influxdb] How to enable logging on influxdb
sv.kirsten via InfluxData
2017-05-03 19:43:51 UTC
Permalink
I want to enable the logging in influxdb,

In the /etc/influxdb/influxdb.conf I have changed these lines :

logging-enabled = true
query-log-enabled = true
log-enabled = true

Then restart the influxdb.

But I don't find a file under /var/log/influxdb/
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/7c0720f6-02c9-4dfe-a537-bc54dac49aad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rishma Gupta
2017-05-04 02:59:29 UTC
Permalink
Try this:
journalctl -u influxdb.service
Post by sv.kirsten via InfluxData
I want to enable the logging in influxdb,
logging-enabled = true
query-log-enabled = true
log-enabled = true
Then restart the influxdb.
But I don't find a file under /var/log/influxdb/
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/b8916ccc-9391-42e9-a547-b6d3de08d22b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sv.kirsten via InfluxData
2017-05-04 09:39:33 UTC
Permalink
yes this works
but only when I start the influxdb with systemctl start.

When I start it manually , then I see the logging only on the console.
How can I enable nevertheless the log file based logging ?
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/4481c845-e7a1-4d48-be4c-7715eaac55b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...