-
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
Rewrite import_dashboards.sh script in go #2155
Conversation
8437d3f
to
21acfcc
Compare
@@ -44,7 +44,11 @@ https://github.com/elastic/beats/compare/v5.0.0-alpha5...master[Check the HEAD d | |||
==== Added | |||
|
|||
*Affecting all Beats* | |||
|
|||
- Add enabled setting to packetbeat protocols. {pull}1988[1988] |
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.
I added them manually here after they were removed in a previous PR. They are not part of alpha5 release.
2c6069d
to
abcb0e3
Compare
623389c
to
3a3af95
Compare
64eb1ee
to
496f352
Compare
5584057
to
566deeb
Compare
dab70dc
to
888562e
Compare
The format of each field can be specified in fields.yml using the `format` option. Generate Kibana index pattern for all the elastic beats by running `make update`
e99d18e
to
e33fce2
Compare
…and unix systems instead of two scripts (bash +powershell). The script imports the dashboards together with visualizations, searches and index pattern for a Beat in Elasticsearch. The script is added to the Beat package.
f34bf98
to
aacfff4
Compare
@@ -8,6 +8,7 @@ _output | |||
/docs/html_docs | |||
.vagrant | |||
build | |||
/dashboards/import_dashboards |
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.
What will this ignore exactly? In case these are the generated dashboards, shouldn't these be in the build directory?
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.
import_dashboards
is the exec, built from import_dashboards.go
. This is generated with make build-dashboards
.
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.
Got it. I got confused as the entry is under the list of excluded directories.
|
||
cl.flagSet.Usage = func() { | ||
const usage = ` | ||
Usage: ./import_dashboards [options] |
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.
See comment below about import
vs load
. Should we call it load_dashboards
?
It's really great to have this script as it makes it cross platform compatible without having additional dependencies. I left a few comments in the code. |
@ruflin I addressed all your comments, thank you! |
Merging so we can continue with packaging. |
This PR includes a rewrite of the
import_dashboards.sh
script in Golang.Features:
-i
optionWe need to include this script into the Beat package (in a separate PR).
The
import
accepts the following options: