-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Beats configuration "dotted" keys issue #27079
Comments
Pinging @elastic/agent (Team:Agent) |
@michalpristas @blakerouse @urso I assume this building of the tree somewhere happens between Elastic Agent when the config is shipped down to the process. Maybe go-ucfg is applying some magic here? Is there a reason we "dedot" configs? |
looks like default options use |
I wonder if we should disable this in general. Maybe worth trying to remove it and see what happens? Otherwise we could just disabled it for osquerybeat? |
I don't think we can just remove it. It would break parsing other parts of the |
so with the JSON like this for example we will loose some values after converting to YAML? the last one wins? |
@aleksmaus Did we ever make progress on this issue? How did you solve it? |
as far as I understood from the replies that this can't be easily fixing without breaking backwards compatibility. we just adopted what we get in osquerybeat in this particular case, and flattened the tree in osquerybeat code. |
I wonder if I've hit a variant of this issue - my case is different in that I'm just starting with a Beats
... results in a bad interpretation of key Are there any known escaping or quoting workarounds for this? Also posted to https://discuss.elastic.co/t/how-can-i-represent-a-config-key-containing-a-dot-period-full-stop/301907 |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Hi! We're labeling this issue as |
My memories are vague about this issue, it's been awhile. I think for osquerybeat we "worked around" this limitation. Could potentially be closed. |
I think the problem that how the configs are treated is not always the same still persists. @joshdover Reminds me of the standalone elastic agent experience where dots sometimes work and sometimes don't. |
This issuer might be related to escaping URLs in query argument elastic/elastic-agent#3421 |
Hi! We're labeling this issue as |
It looks like the "dotted" keys are not supported in the configuration as of July 27th, 2021.
Trying to introduce the ecs_mapping for osquery_manager integration.
The data stream template (stream.yml.hbs) looks like this:
Submitting the integration configuration payload with
ecs_mapping
that looks like the following:Kibana renders the stream configuration with ecs_mapping like the following
The agent receives the ecs_mapping blob correctly as JSON
The beats configuration YAML update is "broken", the beat received the configuration where the keys with dots are unwrapped into the nested YAML tree:
Expecting the keys with dots to be preserved as is and the original structure of the document to be unchanged (flat mapping document with the dotted keys".
The text was updated successfully, but these errors were encountered: