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

[8.11](backport #37085) [Winlogbeat] Convert dashboards for Kibana 8.x #37118

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 14, 2023

This is an automatic backport of pull request #37085 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

Migrate the saved dashboards to 8.x format.

The libbeat code that loads dashboards is hard-coded to look into the "7" directory. So I renamed the 8 dir back to 7.

Fix "Number of Events Over Time By Channel" visualization. One attribute related to the axis was giving an error. Editing and re-saving fixed it.

[git-generate]
cd x-pack/winlogbeat

export KIBANA_INSECURE=true
export KIBANA_URL="https://elastic:changeme@localhost:5601"

mage dashboards:import

for module in powershell security sysmon; do
  for id in $(jq -r .id module/$module/_meta/kibana/7/dashboard/*.json); do
    MODULE=$module ID=$id mage dashboards:export
  done
done

git add module/*/_meta/kibana/8
git rm -r module/*/_meta/kibana/7

cd ../../winlogbeat
go run ../dev-tools/cmd/dashboards/export_dashboards.go -kibana="https://elastic:changeme@localhost:5601" -folder . -insecure -dashboard Winlogbeat-Dashboard-ecs
git rm -r _meta/kibana/7

(cherry picked from commit 17d5bb1)
@mergify mergify bot requested review from a team as code owners November 14, 2023 16:04
@mergify mergify bot added the backport label Nov 14, 2023
@mergify mergify bot requested review from fearful-symmetry and faec and removed request for a team November 14, 2023 16:04
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 14, 2023
@pierrehilbert pierrehilbert added the Team:Elastic-Agent Label for the Agent team label Nov 14, 2023
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Nov 14, 2023
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 86 min 9 sec

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor Author

mergify bot commented Nov 20, 2023

This pull request has not been merged yet. Could you please review and merge it @andrewkroh? 🙏

@andrewkroh andrewkroh merged commit c7d3709 into 8.11 Nov 21, 2023
9 checks passed
@andrewkroh andrewkroh deleted the mergify/bp/8.11/pr-37085 branch November 21, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants