table
table
TableDisplay results as a table, selecting and ordering specific fields.
| table field1 [as alias1], field2 [as alias2], ... | table timestamp as time, level, message The table command displays the results of the pipeline as a table, allowing you to select and order specific fields. You can also use the as keyword to assign an alias to any column.
Parameters
Section titled “Parameters”field [as alias]: The field to display as a column, optionally renamed withas.
- Use
tableat the end of a pipeline to control which fields are shown and their order. - Use
asto rename columns for clarity or convenience. - If not specified, all fields may be shown in default order.
Example
Section titled “Example”| table timestamp as time, message, level as severity
This displays the timestamp field as time, the message field, and the level field as severity in the output table.