Skip to content

Commit

Permalink
Use Kibana byte formatter with ECS bytes fields (elastic#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 5e86209 commit 01e6f06
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions 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
Loading

0 comments on commit 01e6f06

Please sign in to comment.