# Telegraf plugins not writing data into influxdb

**URL:** <https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364>\
**Category:** Telegraf\
**Created:** [January 13, 2022, 7:15pm UTC](https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364 "2022-01-13T19:15:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neo1702](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@neo1702](https://community.influxdata.com/u/neo1702)\
**Post date:** [January 13, 2022, 7:15pm UTC](https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364/1 "2022-01-13T19:15:10Z")

</div>

some of the telegraf plugins like inputs.system inputs.cpu are not working, whil inputs.tail works just fine.

has anyone faced this ever?  
any solution?

---

<div class="post-metadata">

**Author:** ![neo1702](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@neo1702](https://community.influxdata.com/u/neo1702)\
**Post date:** [January 13, 2022, 7:21pm UTC](https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364/2 "2022-01-13T19:21:24Z")

</div>

input field  
“uptime” on measurement “test” is type integer, already exists as type float dropped=54; discarding points

this is the reason.  
this was working fine 10 minutes ago. what might have changed the data type all of a sudden?

---

<div class="post-metadata">

**Author:** ![Jay\_Clifford](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jay_clifford/32/8287_2.png) [@Jay\_Clifford](https://community.influxdata.com/u/Jay_Clifford)\
**Post date:** [January 14, 2022, 10:08am UTC](https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364/3 "2022-01-14T10:08:55Z")

</div>

Hi @neo1702,  
It looks like you might be writing values to the same field names in one measurement which have different types. In this case uptime (int) is trying to write values to uptime (float). So you have two options:

1. Either separate the fields into two distinct measurements.
2. Make sure both fields of name uptime are writing their values as floats and separate them via a tag value .

---

<div class="post-metadata">

**Author:** ![neo1702](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@neo1702](https://community.influxdata.com/u/neo1702)\
**Post date:** [January 14, 2022, 1:08pm UTC](https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364/4 "2022-01-14T13:08:24Z")

</div>

there was no change in the server in any manner… how does this change got triggered? is there any way to find out?

---

<div class="post-metadata">

**Author:** ![Jay\_Clifford](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jay_clifford/32/8287_2.png) [@Jay\_Clifford](https://community.influxdata.com/u/Jay_Clifford)\
**Post date:** [January 17, 2022, 10:33am UTC](https://community.influxdata.com/t/telegraf-plugins-not-writing-data-into-influxdb/23364/5 "2022-01-17T10:33:10Z")

</div>

@neo1702 could you write some of the data to a file using the file output plugin: [telegraf/plugins/outputs/file at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/file)

I can check if there is still a present clash or this is a historical data issue.
