You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is correct in that the index pattern to match the version exactly should be filebeat-8.11.0, but the current example of setup.dsl.data_stream_pattern: "filebeat-%{[agent.version]}" does not work by default because the placeholder %{[agent.version]} wont' match anything.
We should ideally template in the actual stack version, which for docs purposes is defined in
If that cannot be done, we should default to setup.dsl.data_stream_pattern: "filebeat-*" which is too broad but will at least work by default for a user trying Beats for the first time.
As an additional documentation nit, the end of the DSL section in the reference configuration needs a newline at the end to be consistent with the other sections:
So, technically the filebeat-%{[agent.version]} string is the default, as that's what the config will fall back on if you don't configure anything, and the built-in fmtstr library in libbeat will just resolve that to filebeat-8.11. My instinct says that the commented-out config should be the same as the actual default, and if anything we should either explain how the template works, or just change the documentation. Of course, setting the documentation to filebeat-8.11 would technically produce the same config as filebeat-%{[agent.version]}.
This is a follow up from #36649
The default DSL pattern is currently defined as follows (using Filebeat as an example):
beats/filebeat/filebeat.reference.yml
Lines 2445 to 2447 in 1d70a83
This is correct in that the index pattern to match the version exactly should be
filebeat-8.11.0
, but the current example ofsetup.dsl.data_stream_pattern: "filebeat-%{[agent.version]}"
does not work by default because the placeholder%{[agent.version]}
wont' match anything.We should ideally template in the actual stack version, which for docs purposes is defined in
beats/libbeat/docs/version.asciidoc
Line 1 in 1d70a83
beats/libbeat/version/version.go
Line 21 in 1d70a83
If that cannot be done, we should default to
setup.dsl.data_stream_pattern: "filebeat-*"
which is too broad but will at least work by default for a user trying Beats for the first time.As an additional documentation nit, the end of the DSL section in the reference configuration needs a newline at the end to be consistent with the other sections:
beats/filebeat/filebeat.reference.yml
Lines 2460 to 2464 in 1d70a83
The text was updated successfully, but these errors were encountered: