Project Operator
Overview
Choose which fields to return, while optionally renaming them and/or calculating new ones using project
.
Examples
Example data
Return only certain fields
The query below returns only the p_event_time
and clientIp
fields:
clientIp | p_event_time |
---|---|
192.168.11.34 | 2023-09-16 05:45:34.863 |
192.168.1.1 | 2023-09-16 05:59:04.058 |
10.168.22.7 | 2023-09-16 05:36:09.017 |
10.168.22.1 | 2023-09-16 05:36:09.017 |
Rename fields
client | p_event_time |
---|---|
192.168.11.34 | 2023-09-16 05:45:34.863 |
192.168.1.1 | 2023-09-16 05:59:04.058 |
10.168.22.7 | 2023-09-16 05:36:09.017 |
10.168.22.1 | 2023-09-16 05:36:09.017 |
Calculate new fields
This functionality is similar to the extend
operator.
client | is_http_11 | p_event_time |
---|---|---|
192.168.11.34 | true | 2023-09-16 05:45:34.863 |
192.168.1.1 | true | 2023-09-16 05:59:04.058 |
10.168.22.7 | false | 2023-09-16 05:36:09.017 |
10.168.22.1 | true | 2023-09-16 05:36:09.017 |
Last updated