# Log Metrics Api Ingest - Delta between TimeSeries

**URL:** <https://community.dynatrace.com/t/log-metrics-api-ingest-delta-between-timeseries/36921>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [October 17, 2022, 3:28pm UTC](https://community.dynatrace.com/t/log-metrics-api-ingest-delta-between-timeseries/36921 "2022-10-17T15:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcates-marathon](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mcates-marathon](https://community.dynatrace.com/u/mcates-marathon)\
**Post date:** [October 17, 2022, 3:28pm UTC](https://community.dynatrace.com/t/log-metrics-api-ingest-delta-between-timeseries/36921/1 "2022-10-17T15:28:43Z")

</div>

Hi,

We’re ingesting data for external integrations using the Environment V2 logs ingest API.&nbsp; There is an attribute value that’s incremented every second that our Source System is running.&nbsp; With a 1 minute post interval at 60 seconds, we would expect to see the value go from { custom.uptime = 500000 } to { custom.uptime = 500060 }.&nbsp; &nbsp;Starting values can be different for each entity.

For Log Metrics, is there a way to configure a metric that would use the difference between the ‘custom.uptime’ value between Time Series? Our dashboard/alert would contain something split by entities, like (custom.uptime[t2] - custom.uptime[t1] / log.timestamp[t2] - log.timestamp[t1]) \< 1.

Thank you

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 20, 2023, 2:44pm UTC](https://community.dynatrace.com/t/log-metrics-api-ingest-delta-between-timeseries/36921/2 "2023-01-20T14:44:13Z")

</div>

Since this would be making a formula to produce the value you are looking for you might need to leverage a custom metric that will calculate the data as you desire, then once its formulated you can then use that value in a tile and build an alert off of it as well via the metric events.
