Is it possible to get the position of an event in the all event stream?

Getting the position for an event in the “home” stream is easy, but it is possible to get the position for the event in all stream?

Over which API? You will see in http that there is a very long hex number (that’s the position)

What’s the property name for that hex? I can’t find it when doing a get on a event. When I have the hex number, do I just convert it to decimal and I have the position for that event?

Its in the feed or possibly the event as well depends on content types

eg over tcp its right in the read result. over atom+json with
embed=content you will get:

      "content": {
        "eventStreamId": "$projections-$master",
        "eventNumber": 159853,
        "eventType": "$statistics-report",
        "data": {
          "id": "e0e04f55917b480390fb261b7b8371f9",
          "statistics": {
            "status": "StateLoaded",

See that id? That is the place

Cool! Thanks!

But in general you really should not be using this :slight_smile:

Hmmm… Do I really get the id in the data? Doesn’t that depend on what I write in the data? For $statistics-report it looks like you write it in the data so isn’t that why you see it. I just thought that I would see it one way or another. Is it the feed for $all you mean?

It’s not a big deal, I’m just curious.