APM Server: error when executing setup --index-management

Hi!

I'm getting the following error while executing:

apm-server setup --index-management

Error:

Exiting: unpacking template config failed: missing field accessing 'fields' (source:'/etc/apm-server/apm-server.yml')

If I try to start the APM Server, the error is similar:

apm-server[4433]: {"log.level":"error","@timestamp":"2021-02-26T13:20:52.862-0300","log.origin":{"file.name":"instance/beat.go","file.line":971},"message":"Exiting: unpacking template config failed: missing field accessing 'fields' (source:'/etc/apm-server/apm-server.yml')","ecs.version":"1.6.0"}

This started happening recently from un upgrade from Elastic + Kibana + APM Server from version 7.9.3 to 7.11.1.

Regards,
Fede

@FedeOmoto welcome to the forum! Sorry you're experiencing this issue.

I think this is likely related to something in your config. Can you please supply the contents of /etc/apm-server/apm-server.yml (with sensitive details redacted)?

Unfortunately I've been unable to reproduce the issue with 7.11.1 so far.

If you can supply the full log debug output for when you run apm-server setup --index-management then perhaps we'll be able to spot something.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.