Skip to content

Update kibana template used in the stack#2875

Merged
mrodm merged 2 commits intoelastic:mainfrom
mrodm:update_kibana_template
Sep 5, 2025
Merged

Update kibana template used in the stack#2875
mrodm merged 2 commits intoelastic:mainfrom
mrodm:update_kibana_template

Conversation

@mrodm
Copy link
Contributor

@mrodm mrodm commented Sep 5, 2025

Relates #2873

This PR fixes the template used for the kibana configuration template:

  • It fixes an error rendering the template in stacks <8.15.0 (missing a new line).
  • Removes the setting of the debug log level of the fleet.plugin.

@mrodm mrodm self-assigned this Sep 5, 2025
{{- if (and (eq $kibana_http2_enabled "true") (not (semverLessThan $version "8.15.0-SNAPSHOT"))) }}
server.protocol: http2
{{ end -}}
{{- end }}
Copy link
Contributor Author

@mrodm mrodm Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change fixes an error when rendering the kibana.yml file for versions older than 8.15.0-SNAPSHOT

Tested with stack version 8.9.0

 $ yq -r ~/.elastic-package/profiles/default/stack/kibana.yml
Error: bad file '/home/mariorodriguez/.elastic-package/profiles/default/stack/kibana.yml': yaml: line 2: mapping values are not allowed in this context

This was the rendered file (server.ssl.enabled is not in a separated line):

server.name: kibana
server.host: "0.0.0.0"server.ssl.enabled: true
server.ssl.certificate: "/usr/share/kibana/config/certs/cert.pem"
server.ssl.key: "/usr/share/kibana/config/certs/key.pem"

Even that, kibana was able to start successfully.

Comment on lines -164 to -167

logging.loggers:
- name: plugins.fleet
level: debug
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting the change introduced in #2501 related to the log level of fleet plugin.

@mrodm mrodm marked this pull request as ready for review September 5, 2025 10:05
@mrodm mrodm changed the title Update kibana template Update kibana template used in the stack Sep 5, 2025
@mrodm mrodm requested a review from a team September 5, 2025 10:06
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @mrodm

@mrodm mrodm merged commit edfbbe9 into elastic:main Sep 5, 2025
3 checks passed
@mrodm mrodm deleted the update_kibana_template branch September 5, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants