Skip to content
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

[Question] Default agent #336

Open
andreycha opened this issue Oct 6, 2023 · 1 comment
Open

[Question] Default agent #336

andreycha opened this issue Oct 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@andreycha
Copy link
Contributor

andreycha commented Oct 6, 2023

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): all logging framework integrations, 8.6.1

Hi, I wanted to ask, what is the goal of DefaultAgent? When I read description of agent field, it doesn't sound to me like Elastic.CommonSchema.* package is an agent.

Problem is that when log are later shipped by Filebeat, it adds some of its values, and whole agent.* field looks like a mixture of different values from different sources:
image

These fields look consistent like when log entries in the file originally do not have agent.* fields:
image

(It might be also the question that is worth asking Filebeat devs why not all fields get overwritten by Filebeat, upd: https://discuss.elastic.co/t/filebeat-7-17-6-does-not-overwrite-agent-type-and-agent-version-if-they-are-already-present/344521)

P.S. Sorry for the wrong label, Github suggests only templates for bugs and features.

@andreycha andreycha added the enhancement New feature or request label Oct 6, 2023
@Mpdreamz
Copy link
Member

The agent fieldset is documented as:

The agent fields contain the data about the software entity, if any, that collects, detects, or observes events on a host, or takes measurements on a host.

https://www.elastic.co/guide/en/ecs/current/ecs-agent.html

In that regard, Elastic.CommonSchema.Serilog is the agent that observes the logs.

We could potentially only include DefaultAgent when one of the datashippers is used to send data, need to mull over that idea a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants