Hi,
I am using InfluxDb on a Windows platform.
The log data that is shown in the command console, is this data also written to a file?
Where can I find this file?
Hi,
I am using InfluxDb on a Windows platform.
The log data that is shown in the command console, is this data also written to a file?
Where can I find this file?
Hi,
If you’re running InfluxDB directly (i.e., with the influxd command), it’s not automatically written to a file, but you can redirect it to a file.
If you’re running the InfluxDB service, it is written to /var/log/influxdb/influxd.log, which obviously isn’t the same in Windows. I’ll do some research and try to find where it logs automatically in Windows. In the meantime, there are instructions for setting the log file here.
If you want to run influx as a service you can use nssm (non sucking service manager) to create the service and it can redirect std out to a file for you
Hello.
But, how can I enable the log?
I have this at the config file
log-enabled = true
where is the log file in windows?
I use influx as a service with nssm.
Thanks.
Hello.
I have a solution.
When we use nssm to install Influx Service you can choose I/O redirection (Inptu, Output and Error) in the windows that open after write in cmd “nssm.exe install service_name”
I have had a database collecting data from my home automation system for a few months, and I struggled to get collectd to work… I tried reinstalling the service as described here using NSSM, and got an output file that will be good for finding out why collectd dowsnt work.
I did however seemingly loose the data in the database when i reinstalled the service, any way to get it back?
No ideas? What if the computer dies, hvow do i access the existing database (same disk, new mainboard)?
Is there no way to reenable the old data? The new one is called the same with the same retention policy, but its not appended to the old one…