- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I rename a nested field?
stong2351
New Member
05-21-2020
12:29 PM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
kjvarga
Observer
11-24-2022
04:45 PM
Using eval and single quotes worked for me, for example:
namespace="production" container_name="payment-service" type="event" data.event="setup_intent.setup_failed" | eval userId = 'data.event_data.data.object.metadata.user_id' | table userId
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
05-21-2020
12:55 PM
I've done that before, but don't recall if I used |eval detailsStatus = "details.status"
, | eval detailsStatus = 'details.status'
, or | rename "details.stats" as detailsStatus
. Perhaps one of them will work for you.
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
