I tried several options, first I disabled the logs on my c# code, also on the service file for systemd, but nothing worked. Also, I tried to implement a way to disable the verbose logging but nothing worked, but...
My solution:
I'm using Ubuntu, so I configured the logrotate for the influxdb log file, but also for the syslog log, this so that I still have the logs but do not disable it