Get "telemetry token missing in ..." in logs even with ETPRO Telemetry edition.

Started by mrzaz, April 27, 2026, 09:04:41 PM

Previous topic - Next topic
April 27, 2026, 09:04:41 PM Last Edit: May 14, 2026, 09:37:52 AM by mrzaz Reason: Problem resolved.
Hello,
I have ordered and received the token for ETPRO Telemetry edition and has added the token on
the Download page and have saved and then press Download.

But constantly seeing some issues in OpnSense General log hat I could not figure out.

I have added the token and pressed SAVE and done Download and Update again but still the same. Not sure if it is a bug?

2026-04-27T20:37:00        Error                  send_telemetry.py                telemetry token missing in /usr/local/etc/suricata/rule-updater.config
.
.
2026-04-27T20:36:00        Error                  send_telemetry.py                telemetry token missing in /usr/local/etc/suricata/rule-updater.config
2026-04-27T20:35:00        Error                  send_telemetry.py                telemetry token missing in /usr/local/etc/suricata/rule-updater.config
2026-04-27T20:34:00        Error                  send_telemetry.py                telemetry token missing in /usr/local/etc/suricata/rule-updater.config
2026-04-27T20:33:00        Error                  send_telemetry.py                telemetry token missing in /usr/local/etc/suricata/rule-updater.config

Also, here is a snippet of /usr/local/etc/suricata/rule-updater.config as well. The token match the one I received in the email.

SOLVED: As i did not get any response I tried to debug it myself and after a debugging session I found that the fault is not a missing or wrong token but rather a missing folder /var/log/suricata/ that for some reason was gone even if I have had IP enabled several times.

I have sent an email to the handler of the "ET Pro Telemetry Edition" plugin with more in-depth details.

Basically the send_telemetry.py script at one point checked that the folder /var/log/suricata/ exists and if it doesn't it sends a very missleading error in the log.   "Error                  send_telemetry.py                telemetry token missing in /usr/local/etc/suricata/rule-updater.config"

The handler realized that it was a bug in the code where two different if else statements was in the wrong order:

Incorrect before fix.
    if cnf.token is not None:
        if os.path.isdir(args.log):
.
.
                exit_code = 0
        else:
                syslog.syslog(syslog.LOG_ERR, 'telemetry token missing in %s' % args.config)
    else:
            syslog.syslog(syslog.LOG_ERR, 'directory %s missing' % args.log)

Correct order
    if cnf.token is not None:
        if os.path.isdir(args.log):
.
.
                exit_code = 0
        else:
            syslog.syslog(syslog.LOG_ERR, 'directory %s missing' % args.log)
    else:
        syslog.syslog(syslog.LOG_ERR, 'telemetry token missing in %s' % args.config)

//Dan

Best regards
Dan Lundqvist
Stockholm, Sweden
Best regards
Dan Lundqvist (mrzaz)

"It's better to burn up, than fade away..." (Highlander)