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

Add data_stream fields to spec #38

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion spec/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,51 @@
"they should set `event.dataset=${service.name}.${appender.name}` if the appender name is available in the logging library.",
"Otherwise, agents should also set `event.dataset=${service.name}.log`",
"",
"The field helps to filter for different log streams from the same pod, for example and is required for log anomaly detection."
"The field helps to filter for different log streams from the same pod, for example and is required for log anomaly detection.",
"",
"Should have the same value as `data_stream.dataset`.",
"",
"In 8.0, `event.dataset` will be removed in favor of `data_stream.dataset`."
]
},
"data_stream.dataset": {
"type": "string",
"required": false,
"url": "https://github.com/elastic/ecs/pull/1145",
"default": "${service.name}.log OR ${service.name}.${appender.name}",
"sanitization": {
"value": {
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " ", "-"],
"substitute": "_",
felixbarny marked this conversation as resolved.
Show resolved Hide resolved
"max_chars": 100
}
},
"comment": [
"Configurable by users.",
"Influences which data stream the logs will be stored in (`logs-{data_stream.dataset}-{data_stream.namespace}`)",
"If unspecified, Filebeat will set the value to `default`.",
felixbarny marked this conversation as resolved.
Show resolved Hide resolved
"",
"Should have the same value as `event.dataset`."
]
},
"data_stream.namespace": {
"type": "string",
"required": false,
"url": "https://github.com/elastic/ecs/pull/1145",
"default": null,
"sanitization": {
"value": {
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " "],
"substitute": "_",
"max_chars": 100
}
},
"comment": [
"Configurable by users.",
"Influences which data stream the logs will be stored in (`logs-{data_stream.dataset}-{data_stream.namespace}`)",
"If unspecified, Filebeat will set the value to `default`.",
"",
"Should have the same value as `event.dataset`."
]
},
"process.thread.name": {
Expand Down