Snmp-collector docker restarting

Hello team,

i have installed elastiflow with elasticsearch, kibana, and flow collector. after compose up command snmp-collector keeps restarting. i have basic license error below.

tried to create .env file and store id and license key

{“level”:“info”,“ts”:“2026-02-22T15:38:56.170Z”,“logger”:“snmpcoll.license.license[default]”,“caller”:“envconf/logger.go:49”,“msg”:“EF_SNMP_LICENSED_CORES=0”}
{“level”:“fatal”,“ts”:“2026-02-22T15:38:56.171Z”,“logger”:“snmpcoll”,“caller”:“snmpcoll/main.go:64”,“msg”:“exiting because of a license error”,“code”:“license/error”,“reason”:“failed to create license: failed to parse license key: signature is invalid”,“stacktrace”:“main.main\n\t/app/cmd/snmpcoll/main.go:64\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271”}

if is use the id and license in docker yaml getting below error. license key is so big

msg":“EF_SNMP_LICENSED_CORES=0”} {“level”:“fatal”,“ts”:“2026-02-22T14:10:47.315Z”,“logger”:“snmpcoll”,“caller”:“snmpcoll/main.go:64”,“msg”:“exiting because of a license error”,“code”:“license/error”,“reason”:“failed to create license: failed to parse license key: illegal base64 data at input byte 0”,“stacktrace”:“main.main\n\t/app/cmd/snmpcoll/main.go:64\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271”}

It seems like the key you are using is invalid? If you want to message me your license information, I can test it. Here is what my license entry looks like in my (natively installed) SNMP collector looks like.

snmpcoll-license

Regards,

Dexter Turner

complete yaml file config, account id and license key is hidden

version: ‘3.8’

services:

elasticsearch:

image: docker.elastic.co/elasticsearch/elasticsearch:8.14.0

container_name: elasticsearch

restart: unless-stopped

environment:


  - discovery.type=single-node

  - ES_JAVA_OPTS=-Xms4g -Xmx4g

  - xpack.security.enabled=true
  - xpack.security.http.ssl.enabled=false
  - ELASTIC_PASSWORD=StrongElasticPassword

ulimits:

  memlock:

    soft: -1

    hard: -1

volumes:

  - esdata:/usr/share/elasticsearch/data

ports:

  - "9200:9200"

kibana:

image: docker.elastic.co/kibana/kibana:8.14.0

container_name: kibana

restart: unless-stopped

depends_on:

  - elasticsearch

environment:

  - ELASTICSEARCH_HOSTS=http://elasticsearch:9200

  - ELASTICSEARCH_SERVICEACCOUNTTOKEN=AAEAAWVsYXN0aWMva2liYW5hL2tpYmFuYS10b2tlbjpWa0NnTjV1OFN2S2lRTjV5Ym5KaVhR

ports:

  - "5601:5601"

flow-collector:

image: elastiflow/flow-collector:7.6.0

container_name: flow-collector

restart: unless-stopped

network_mode: host

volumes:

  - ./elastiflow:/etc/elastiflow

environment:

  EF_LICENSE_ACCEPTED: 'true'

  EF_FLOW_SERVER_UDP_PORT: 9995

  EF_OUTPUT_ELASTICSEARCH_ENABLE: 'true'

  EF_OUTPUT_ELASTICSEARCH_ADDRESSES: 'http://localhost:9200'

  EF_OUTPUT_ELASTICSEARCH_USERNAME: 'elastic'

  EF_OUTPUT_ELASTICSEARCH_PASSWORD: 'StrongElasticPassword'

snmp-collector:

image: elastiflow/snmp-collector:7.6.0

container_name: snmp-collector

restart: unless-stopped

volumes:

  - ./elastiflow:/etc/elastiflow

environment:

  EF_LICENSE_ACCEPTED: 'true'

  EF_ACCOUNT_ID: '699a00xxxxxxxxxxxxxxxxxxx'

  EF_SNMP_LICENSE_KEY: 'eyJhbGciOiJIUzI1NiIsxxxxxxxxxxxxxxxxx.yyyyyyyyyykkkkkkkkkkkkaaaaaaaaaaaaaaaffffffffffjjjjjjjjjjj-sEDI0'

  EF_OUTPUT_ELASTICSEARCH_ENABLE: 'true'

  EF_OUTPUT_ELASTICSEARCH_ADDRESSES: 'http://elasticsearch:9200'

  EF_OUTPUT_ELASTICSEARCH_USERNAME: 'elastic'

  EF_OUTPUT_ELASTICSEARCH_PASSWORD: 'StrongElasticPassword'

volumes:

esdata:

You are using version 7.6.0 of the collectors. That is when the licensing paramaters changed. See this note in the Changelog:

EF_FLOW_LICENSE_KEY and EF_SNMP_LICENSE_KEY are no longer used. It is simply EF_LICENSE_KEY and you should be able to use the same license key for both collectors.

Note that the latest version is 7.21.0.

Regards,

Dexter Turner

error after changing the yaml file. below error

{“level”:“info”,“ts”:“2026-02-23T14:28:51.157Z”,“logger”:“snmpcoll.httpserver”,“caller”:“httpserver/httpserver.go:28”,“msg”:“endpoint exposed”,“url”:“http://0.0.0.0:8080/api/v1/snmp/rediscover-device”}
{“level”:“info”,“ts”:“2026-02-23T14:28:51.157Z”,“logger”:“snmpcoll.httpserver”,“caller”:“httpserver/httpserver.go:28”,“msg”:“endpoint exposed”,“url”:“http://0.0.0.0:8080/support-bundle”}
{“level”:“info”,“ts”:“2026-02-23T14:28:51.160Z”,“logger”:“snmpcoll.snmp”,“caller”:“snmp/instance_registration.go:73”,“msg”:“instance created”}
{“level”:“fatal”,“ts”:“2026-02-23T14:28:51.191Z”,“caller”:“disk_persist/disk_persistor.go:57”,“msg”:“failed reading definition files”,“error”:“error reading object definition - error while merging object definitions - vendor-specific object ‘ARISTA-ASIC-COUNTERS-MIB::aristaAsicInternalDropStatsEntry’ is only accessible with a Standard license level or higher”,“stacktrace”:“github.com/elastiflow/flowcoll/pkg/inputs/snmp/disk_persist.New\n\t/app/pkg/inputs/snmp/disk_persist/disk_persistor.go:57\ngithub.com/elastiflow/flowcoll/pkg/inputs/snmp.(*Snmp).Run\n\t/app/pkg/inputs/snmp/snmp.go:88”}

I would refer you to a previous post in the forum regarding this specific error.

issue is resolved. thanks.

1 Like