Skip to content

Commit

Permalink
Use Kibana byte formatter with ECS bytes fields (#10184)
Browse files Browse the repository at this point in the history
Add a Kibana field formatter to the fields that contain bytes so that they are represented in human readable format (e.g. 10 KB, 10GB).
  • Loading branch information
andrewkroh authored Jan 24, 2019
1 parent c3ceee5 commit bfc2f32
Show file tree
Hide file tree
Showing 18 changed files with 179 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Introduce `migration.enabled` configuration. {pull}9805[9805]
- Add alias field support in Kibana index pattern. {pull}10075[10075]
- Add `add_fields` processor. {pull}10119[10119]
- Add Kibana field formatter to bytes fields. {pull}10184[10184]

*Auditbeat*

Expand Down
20 changes: 20 additions & 0 deletions auditbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2917,6 +2917,8 @@ type: long
example: 184
format: bytes
Bytes sent from the client to the server.
Expand Down Expand Up @@ -3264,6 +3266,8 @@ type: long
example: 184
format: bytes
Bytes sent from the destination to the source.
Expand Down Expand Up @@ -3786,6 +3790,8 @@ Mode of the file in octal representation.
--
type: long
format: bytes
File size in bytes (field is only added when `type` is `file`).
--
Expand Down Expand Up @@ -4190,6 +4196,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the request (body and headers).
Expand All @@ -4202,6 +4210,8 @@ type: long
example: 887
format: bytes
Size in bytes of the request body.
Expand All @@ -4214,6 +4224,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the response (body and headers).
Expand All @@ -4226,6 +4238,8 @@ type: long
example: 887
format: bytes
Size in bytes of the response body.
Expand Down Expand Up @@ -4404,6 +4418,8 @@ type: long
example: 368
format: bytes
Total bytes transferred in both directions.
If `source.bytes` and `destination.bytes` are known, `network.bytes` is their sum.
Expand Down Expand Up @@ -4989,6 +5005,8 @@ type: long
example: 184
format: bytes
Bytes sent from the server to the client.
Expand Down Expand Up @@ -5263,6 +5281,8 @@ type: long
example: 184
format: bytes
Bytes sent from the source to the destination.
Expand Down
2 changes: 1 addition & 1 deletion auditbeat/include/fields.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,8 @@ type: long
example: 184
format: bytes
Bytes sent from the client to the server.
Expand Down Expand Up @@ -1328,6 +1330,8 @@ type: long
example: 184
format: bytes
Bytes sent from the destination to the source.
Expand Down Expand Up @@ -1850,6 +1854,8 @@ Mode of the file in octal representation.
--
type: long
format: bytes
File size in bytes (field is only added when `type` is `file`).
--
Expand Down Expand Up @@ -2254,6 +2260,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the request (body and headers).
Expand All @@ -2266,6 +2274,8 @@ type: long
example: 887
format: bytes
Size in bytes of the request body.
Expand All @@ -2278,6 +2288,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the response (body and headers).
Expand All @@ -2290,6 +2302,8 @@ type: long
example: 887
format: bytes
Size in bytes of the response body.
Expand Down Expand Up @@ -2468,6 +2482,8 @@ type: long
example: 368
format: bytes
Total bytes transferred in both directions.
If `source.bytes` and `destination.bytes` are known, `network.bytes` is their sum.
Expand Down Expand Up @@ -3053,6 +3069,8 @@ type: long
example: 184
format: bytes
Bytes sent from the server to the client.
Expand Down Expand Up @@ -3327,6 +3345,8 @@ type: long
example: 184
format: bytes
Bytes sent from the source to the destination.
Expand Down
2 changes: 1 addition & 1 deletion filebeat/include/fields.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions heartbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ type: long
example: 184
format: bytes
Bytes sent from the client to the server.
Expand Down Expand Up @@ -877,6 +879,8 @@ type: long
example: 184
format: bytes
Bytes sent from the destination to the source.
Expand Down Expand Up @@ -1399,6 +1403,8 @@ Mode of the file in octal representation.
--
type: long
format: bytes
File size in bytes (field is only added when `type` is `file`).
--
Expand Down Expand Up @@ -1803,6 +1809,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the request (body and headers).
Expand All @@ -1815,6 +1823,8 @@ type: long
example: 887
format: bytes
Size in bytes of the request body.
Expand All @@ -1827,6 +1837,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the response (body and headers).
Expand All @@ -1839,6 +1851,8 @@ type: long
example: 887
format: bytes
Size in bytes of the response body.
Expand Down Expand Up @@ -2017,6 +2031,8 @@ type: long
example: 368
format: bytes
Total bytes transferred in both directions.
If `source.bytes` and `destination.bytes` are known, `network.bytes` is their sum.
Expand Down Expand Up @@ -2602,6 +2618,8 @@ type: long
example: 184
format: bytes
Bytes sent from the server to the client.
Expand Down Expand Up @@ -2876,6 +2894,8 @@ type: long
example: 184
format: bytes
Bytes sent from the source to the destination.
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/include/fields.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions journalbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ type: long
example: 184
format: bytes
Bytes sent from the client to the server.
Expand Down Expand Up @@ -1144,6 +1146,8 @@ type: long
example: 184
format: bytes
Bytes sent from the destination to the source.
Expand Down Expand Up @@ -1666,6 +1670,8 @@ Mode of the file in octal representation.
--
type: long
format: bytes
File size in bytes (field is only added when `type` is `file`).
--
Expand Down Expand Up @@ -2070,6 +2076,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the request (body and headers).
Expand All @@ -2082,6 +2090,8 @@ type: long
example: 887
format: bytes
Size in bytes of the request body.
Expand All @@ -2094,6 +2104,8 @@ type: long
example: 1437
format: bytes
Total size in bytes of the response (body and headers).
Expand All @@ -2106,6 +2118,8 @@ type: long
example: 887
format: bytes
Size in bytes of the response body.
Expand Down Expand Up @@ -2284,6 +2298,8 @@ type: long
example: 368
format: bytes
Total bytes transferred in both directions.
If `source.bytes` and `destination.bytes` are known, `network.bytes` is their sum.
Expand Down Expand Up @@ -2869,6 +2885,8 @@ type: long
example: 184
format: bytes
Bytes sent from the server to the client.
Expand Down Expand Up @@ -3143,6 +3161,8 @@ type: long
example: 184
format: bytes
Bytes sent from the source to the destination.
Expand Down
2 changes: 1 addition & 1 deletion journalbeat/include/fields.go

Large diffs are not rendered by default.

Loading

0 comments on commit bfc2f32

Please sign in to comment.