question

joconnor avatar image
joconnor asked

How to query PlayerEvent properties from the Event History view?

I created my event from Unity with the following call:

var request = new WriteClientPlayerEventRequest {
EventName = "player_completed_stage",
Body = new Dictionary<string, object> {
                {"StageName", stage.name} }
};

The event appears in the Event History view with the following JSON:

{
"EventName": "player_completed_stage",
"EventNamespace": "title.BEC",
"Source": "BEC",
"EntityType": "player",
"TitleId": "BEC",
"EventId": "9b389dfe19d0469b817787fd8b34a0bc",
"EntityId": "ED2C5A46D84BAB18",
"SourceType": "GameClient",
"Timestamp": "2016-12-12T23:00:11.7821114Z",
"History": null,
"CustomTags": null,
"Reserved": null,
"StageName": "myFirstStage"
}

I am trying to query for event's with the "EventName":"player_completed_stage" and "StageName":"myFirstStage".

I am using the following query:

eventData.eventName:player_completed_stage AND eventData.stageName:myFirstStage

Unfortunately this doesn't find any events. Is there something I'm missing?

Cheers,

Josh

PlayStream
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Custom fields aren't indexed, so they don't follow the same pattern for query. But full text search does still work for this, so this query would get you the events you're looking for:

eventData.eventName:player_completed_stage AND "myFirstStage"
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

joconnor avatar image joconnor commented ·

Thanks Brendan, that's works perfectly!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.