# Extract error lines from a write query that failed with partial write

**URL:** https://community.influxdata.com/t/extract-error-lines-from-a-write-query-that-failed-with-partial-write/3556
**Category:** Telegraf
**Created:** [January 3, 2018, 11:01am UTC](https://community.influxdata.com/t/extract-error-lines-from-a-write-query-that-failed-with-partial-write/3556 "2018-01-03T11:01:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hamza\_Chtioui](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@Hamza\_Chtioui](https://community.influxdata.com/u/Hamza_Chtioui)
#### Post date: [January 3, 2018, 11:01am UTC](https://community.influxdata.com/t/extract-error-lines-from-a-write-query-that-failed-with-partial-write/3556/1 "2018-01-03T11:01:13Z")

</div>

Hello community,

i’m using influxdb to collect metrcis data,  
sometimes i have some metrics with old timestamp (out of the retention policy),  
and type conflicts errors,  
i want to extract the errors lines to send them to a log file,  
i know that a partial write do the job for the others “good” lines (my batchpoint contains an average of 1000 lines),  
but i didn’t figure out how to extract error lines because they don’t appear in the response body of the write query,

---

<div class="post-metadata">

### Author: ![Hamza\_Chtioui](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@Hamza\_Chtioui](https://community.influxdata.com/u/Hamza_Chtioui)
#### Post date: [January 4, 2018, 4:22pm UTC](https://community.influxdata.com/t/extract-error-lines-from-a-write-query-that-failed-with-partial-write/3556/2 "2018-01-04T16:22:05Z")

</div>

My main question is:  
there is a way to get the rejected lines from influxDB? So i can log them in a log file.  
Because now, influx’s response contains only the first line rejected (not all the rejected lines)

is that clear enough?

Thanks for your help

---

<div class="post-metadata">

### Author: ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)
#### Post date: [January 4, 2018, 11:59pm UTC](https://community.influxdata.com/t/extract-error-lines-from-a-write-query-that-failed-with-partial-write/3556/3 "2018-01-04T23:59:09Z")

</div>

No, this is not currently possible.

---

<div class="post-metadata">

### Author: ![Hamza\_Chtioui](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@Hamza\_Chtioui](https://community.influxdata.com/u/Hamza_Chtioui)
#### Post date: [January 5, 2018, 11:06am UTC](https://community.influxdata.com/t/extract-error-lines-from-a-write-query-that-failed-with-partial-write/3556/4 "2018-01-05T11:06:46Z")

</div>

Thanks for the reply

have a nice we
