Closed kkamranCinedigmInd closed 5 months ago
Hi @kkamranCinedigmInd
Thank you for raising this, indeed ES|QL
flattens the nested structure such that:
{
"user": {
"id": 1
}
}
Would translate to a user.id
field in the response.
The helper doesn't currently support this syntax, I've raised a topic on this with the team for future improvements.
You can however override the deserialization on your ProcessedLog
by implementing a custom json.Unmarshaler
interface to explicitly map your fields.
I am using the new ESQL library in Go. While fetching data from it, the fields of inner structs are not getting populated.
Here, the EventName and SessionId gets populated but the fields in the Device and User struct do not.