Rename a Single Field - Example 1

Rename a single field using the rename() function with the as parameter to define the new name of the field

Query

logscale
rename(field=badName, as=goodName)

Introduction

The rename() function is used to rename one or more fields. In this example, only one field is renamed using the as parameter to define the new name of the field.

Step-by-Step

  1. Starting with the source repository events.

  2. logscale
    rename(field=badName, as=goodName)

    Renames the field badName to goodName.

  3. Event Result set.

Summary and Results

The query is used to quickly rename single fields.