Exception in fleet server and unable to receive logs

Hi Team,

I am trying to make the fleet server up however getting error in file and I am unable to decode it. Can someone please help?

{"log.level":"error","service.name":"fleet-server","service.name":"fleet-server","fleet.agent.id":"a1eabc91-88a8-46b7-aaae-ce1848e3e441","http.request.id":"","fleet.access.apikey.id":"3VNw6IUB12YFbzRZXDIo","ctx":"processPolicy","policyRevision":12,"policyCoordinator":1,"fleet.policy.id":"a2cf71d0-97f1-11ed-a889-57b03ff45a22","error.message":"fail CreateAPIKey: [400 Bad Request] {\"error\":{\"root_cause\":[{\"type\":\"x_content_parse_exception\",\"reason\":\"[1:1239] [role_descriptors] failed to parse field [endpoint ]\"}],\"type\":\"x_content_parse_exception\",\"reason\":\"[1:1239] [api_key_request] failed to parse field [role_descriptors]\",\"caused_by\":{\"type\":\"x_content_parse_exception\",\"reason\":\"[1:1239] [role_descriptors] failed to parse field [endpoint ]\",\"caused_by\":{\"type\":\"validation_exception\",\"reason\":\"Validation Failed: 1: Role names must be at least 1 and no more than 1024 characters. They can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block. Leading or trailing whitespace is not allowed.;\"}}},\"status\":400}","@timestamp":"2023-01-26T05:39:58.838Z","message":"fail generate output key"}


{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","fleet.agent.id":"a1eabc91-88a8-46b7-aaae-ce1848e3e441","http.request.id":"","fleet.access.apikey.id":"3VNw6IUB12YFbzRZXDIo","error.message":"processPolicy: fail CreateAPIKey: [400 Bad Request] {\"error\":{\"root_cause\":[{\"type\":\"x_content_parse_exception\",\"reason\":\"[1:1239] [role_descriptors] failed to parse field [endpoint ]\"}],\"type\":\"x_content_parse_exception\",\"reason\":\"[1:1239] [api_key_request] failed to parse field [role_descriptors]\",\"caused_by\":{\"type\":\"x_content_parse_exception\",\"reason\":\"[1:1239] [role_descriptors] failed to parse field [endpoint ]\",\"caused_by\":{\"type\":\"validation_exception\",\"reason\":\"Validation Failed: 1: Role names must be at least 1 and no more than 1024 characters. They can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block. Leading or trailing whitespace is not allowed.;\"}}},\"status\":400}","http.response.status_code":400,"event.duration":767888761,"@timestamp":"2023-01-26T05:39:58.838Z","message":"fail checkin"}

Resolved it was whitespace entered after name - deleted it and it started working fine

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