thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.75k stars 845 forks source link

[HELP]How to cancel remote-logging #836

Closed Lanruo555 closed 2 years ago

Lanruo555 commented 2 years ago

Describe the issue I did this feature https://thingsboard.io/docs/iot-gateway/guides/how-to-enable-remote-logging/ in my project but now I find this operation makes all logs saved to the database with too high memory and I want to cancel this feature , so how can I do it. Thank you for your reply.

Connector name (If you need help with some connector/converter): MQTT Connector

Versions (please complete the following information):

imbeacon commented 2 years ago

Hi @plm55555 ,

The simplest way to disable remote logging is to remove "RemoteLoggingLevel" attribute from the gateway. Or change it to higher level? like ERROR, the you will receive only error messages.

Lanruo555 commented 2 years ago

Thanks for your reply. When I delete “RemoteLoggingLevel” this property, although the logging will not be saved to the database again ,but I can't check it in Raspberry Pi again. Before I add this attribute, I can view the DEBUG-level attributes in the Raspberry Pi in the logs file, which is exactly what I need. So how should I do it? image @imbeacon

imbeacon commented 2 years ago

Hi @Lanruo555 ,

Actually after removing this parameter you can restart the gateway and configuration will be taken from logs.conf file in your config folder, as before adding this parameter.

samson0v commented 2 years ago

Hi @Lanruo555, any updates? Can we close the issue?