Geographic point fields support the
String
formatter.
Supported transformations include:
Numeric fields support
Bytes and Bits
,
Color
,
Duration
,
Histogram
,
Number
,
Percentage
,
String
, and
Url
formatters.
The
Bytes and Bits
,
Number
, and
Percentage
formatters enable you to choose the display formats of numbers in the field using the
Elastic numeral pattern
syntax that Kibana maintains.
The
Histogram
formatter is used only for the
histogram field type
. When you use the
Histogram
formatter, you can apply the
Bytes and Bits
,
Number
, or
Percentage
format to aggregated data.
You can specify the following types to the
Url
field formatter:
Link
— Converts the contents of the field into an URL. You can specify the width and height of the image, while keeping the aspect ratio. When the image is smaller than the specified parameters, the image is unable to upscale.
Image
— Specifies the image directory.
Audio
— Specify the audio directory.
To customize URL field formats, use templates. An
URL template
enables you to add values to a partial URL. To add the contents of the field to a fixed URL, use the
{{value}}
string.
For example, when:
A field contains a user ID
A field uses the
Url
field formatter
The URI template is
http://company.net/profiles?user_id={{{value}}}
The resulting URL replaces
{{value}}
with the user ID from the field.
The
{{value}}
template string URL-encodes the contents of the field. When a field encoded into a URL contains non-ASCII characters, the characters are replaced with a
%
character and the appropriate hexadecimal code. For example, field contents
users/admin
result in the URL template adding
users%2Fadmin
.
When the formatter type is
Image
, the
{{value}}
template string specifies the name of an image at the specified URI.
When the formatter type is
Audio
, the
{{value}}
template string specifies the name of an audio file at the specified URI.
To pass unescaped values directly to the URL, use the
{{rawValue}}
string.
A
Label template
enables you to specify a text string that appears instead of the raw URL. You can use the
{{value}}
template string normally in label templates. You can also use the
{{url}}
template string to display the formatted URL.
The
String
field formatter enables you to apply transforms to the field.
Supported transformations include:
Convert to lowercase
Convert to uppercase
Convert to title case
Apply the short dots transformation, which replaces the content before the
.
character with the first character of the content. For example:
Original
Becomes
com.organizations.project.ClassName
c.o.p.ClassName
Base64 decode
URL param decode
The
Duration
field formatter displays the numeric value of a field in the following increments:
Picoseconds
Nanoseconds
Microseconds
Milliseconds
Seconds
Minutes
Hours
Weeks
Months
Years
You can specify these increments with up to 20 decimal places for input and output formats.
The
Color
field formatter enables you to specify colors with ranges of values for a number field.
When you select the
Color
formatter, click
Add Color
, then specify the
Range
,
Text color
, and
Background color
.
This content is available in different formats for convenience only. All original licensing terms apply.
Elasticsearch is a trademark of Elasticsearch B.V., registered in the U.S. and in other countries. Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.