-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Diagnostic] Folder and file naming length #3758
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
The original report of this was specific to the httpjson request tracer, which is not something Elastic Agent generates. It is a feature of the httpjson input. The simplest solution is to limit the file name generated for request traces at the source. |
@pierrehilbert @cmacknz Looks like this should have been transferred to another team according @fearful-symmetry, could you please update this? |
BackgroundToday there are three inputs that support this tracing feature - http_endpoint, httpjson and cel. They use the Filebeat input ID as part of their filename. Filebeat constructs the input ID by taking the configured ID, which is set by Fleet to the stream ID, and appending 1 the source name (e.g. the URL for cel/httpjson). An example Filebeat input ID would be The integrations are then configured 2 to write the request tracer logs into
I should also note that these files can be rotated and they will then contain the date like Proposed FixChange Filebeat
Change FleetOr if we had access to the stream ID directly in the Fleet handlebar templates (depends on elastic/kibana#121310), then we could avoid needing to change Filebeat, and we could directly configure each integration to use a pattern like
Footnotes |
Reopening the issue since the change was reverted today. Will follow up with further investigation. |
The revert was reverted back. The team found the root cause of the problem in the different place. |
Issue
On windows, unpacking diagnostics can hit the max path allowed length of 255 characters.
This problem is happening because folders and files name are long especially when we are requesting tracers.
To solve this problem, one solution could be to avoid to use stream-id in both the folder name and the file name.
Definition of done
The text was updated successfully, but these errors were encountered: