-
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
[Winlogbeat] Convert dashboards for Kibana 8.x #37085
[Winlogbeat] Convert dashboards for Kibana 8.x #37085
Conversation
Migrate the saved dashboards to 8.x format. [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
The libbeat code that loads dashboards is hard-coded to look into the "7" directory.
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
922d60f
to
7a461fd
Compare
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to explain what the issue was with the "Number of Events Over Time By Channel" visualization.
I wanted to include a copy of the error, but I forgot to copy it before fixing it. But it was something about a property of the x-axis not being valid. When I edited and resaved it went away. |
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)
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) Co-authored-by: Andrew Kroh <[email protected]>
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
Proposed commit message
I loaded the dashboards into Kibana 8.11.0 and then exported them. This removed the
migrationVersion
which was causing problems for users of multiple Kibana spaces. I had to fix one visualization on the overview dashboard. Other than that, I did not make any changes to the dashboard visualizations or layouts.These are the commands that I used:
I discovered that libbeat has hard-coded the Kibana dashboard directory to
7
. So after exporting the visualizations I renamed the directory from 8 back to 7 so that Winlogbeat will continue to load the dashboards onsetup
.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues