Table of Contents


rename command renames one or more table columns.

Use comma to separate columns that are going to be renamed. Use quotation or single quotation marks with names that consist of more than one word.


You can rename one or more existing table columns. However, you will get an error if you try to give two different names to the same table column.

index=example | rename _time as time, _raw as prices
Simple renaming example

You can also rename table columns that are created with spath, eval, table or other transform command.

| spath
| table rainfall_rate, wind_speed
| rename rainfall_rate as "Rainfall rate", wind_speed as "Wind speed"
Another renaming example