-
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
Generate Kibana index pattern #2122
Conversation
6ed8c43
to
fda669d
Compare
eed7b93
to
3e2b249
Compare
3723183
to
7aba4f4
Compare
} | ||
if "type" in desc: | ||
if desc["type"] in ["half_float", "float", "integer", "long"]: | ||
field["type"] = "integer" |
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.
Is "integer" correct here? Shouldn't it be "number"?
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.
Oh, good spot, @tsg. Thanks!
LGTM, great work! I see only the Packetbeat index was re-generated, should we do them all in this PR? Also, needs a rebase. |
Yes, I will do for all the Beats in the same PR. |
b865ce1
to
158c66f
Compare
With this change the |
@@ -1901,6 +1911,8 @@ CPU Core number. | |||
|
|||
type: half_float | |||
|
|||
format: percent |
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's nice to have this also in the docs 👍
LGTM. Great work. Could you rebase? |
158c66f
to
55b5004
Compare
Rebased. |
@@ -45,6 +45,17 @@ https://github.com/elastic/beats/compare/v5.0.0-alpha5...master[Check the HEAD d | |||
|
|||
*Affecting all Beats* | |||
|
|||
- Periodically log internal metrics. {pull}1955[1955] |
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.
Where are these changelog entries coming from?
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.
Yes, it looks like "git rebase master" didn't do a good job. They were part of alpha5. Thanks for noticing it. I am fixing it manually.
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`
4761ee4
to
c9cde58
Compare
This PR creates a python script to generate the index pattern in json format from the fields.yml. The generated index pattern is needed by Kibana to know how to format the fields, think of a percentage value.
As Kibana supports
number
,string
andboolean
types, all the variations ofhalf_float
,float
,integer
,long
becomenumber
in the index-pattern.For special fields that require a special format (like
percent
,bytes
), usually you need to define the format manually for each field in Kibana in order for Kibana to know how to display a number when it's a percentage (using %) or in MB/GB for bytes values. To automate the process, this PR lets you define the format of the field in theformat
option.This PR is another way to solve elastic/beats-dashboards#117