# What point in time relates to @timestamp?

**URL:** <https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140>\
**Category:** APM\
**Tags:** rum\
**Created:** [July 14, 2020, 1:18pm UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140 "2020-07-14T13:18:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stk1](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stk1](https://discuss.elastic.co/u/stk1)\
**Post date:** [July 14, 2020, 1:18pm UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140/1 "2020-07-14T13:18:09Z")

</div>

Hi,  
I am using the RUM agent in combination with a Python agent to monitor the performance of our app. In the backend I have reliable timestamps that are not available for the clients. The only info I have is the `@timestamp` field in Elasticsearch. But I am not sure to what it relates: the start of the transaction, its end or the arrival at the APM server? I trigger the transactions manually using `startTransaction()`.  
Hope someone can help, thanks!

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [July 14, 2020, 1:45pm UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140/2 "2020-07-14T13:45:03Z")

</div>

If I remember correctly, it's the timestamp of arrival on APM Server. The RUM folks should be able to confirm.

Personally, I think it would be useful to set the timestamp to arrival at APM Server minus `transaction.duration`.

The APM UI compensates for the inconsistent timestamps of the RUM agent and backend agents by making sure that a child transaction (captured by a backend agent) never gets rendered as started before it's parent transaction (captured by the RUM agent).

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [July 15, 2020, 8:45am UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140/3 "2020-07-15T08:45:21Z")

</div>

Hi @stk1,

The timestamp shows the time that the APM server processed the transaction and not the actual time it was created on the browser. This is due to inconsistencies of timestamps on the clients. Please see our [transaction reference documentation](https://www.elastic.co/guide/en/apm/agent/rum-js/current/transaction-api.html#transaction-timestamp) for more details.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![stk1](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stk1](https://discuss.elastic.co/u/stk1)\
**Post date:** [July 15, 2020, 9:01am UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140/4 "2020-07-15T09:01:41Z")

</div>

Thank you both! I have previously read the API documentation for the transaction, but was not sure if the APM server subtracts the duration from time the event arrives or is processed. Thanks!

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [July 15, 2020, 2:28pm UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140/5 "2020-07-15T14:28:57Z")

</div>

We do actually have an open issue regarding this so feel free to subscribe to it to get notified about updates: [https://github.com/elastic/apm-server/issues/1830](https://github.com/elastic/apm-server/issues/1830)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 5, 2020, 10:31am UTC](https://discuss.elastic.co/t/what-point-in-time-relates-to-timestamp/241140/6 "2020-08-05T10:31:55Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
