# Line Protocol InfluxDB 2.0

**URL:** <https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832>\
**Category:** InfluxDB 2\
**Created:** [March 11, 2021, 6:42am UTC](https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832 "2021-03-11T06:42:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aegisflanker](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/aegisflanker/32/6942_2.png) [@aegisflanker](https://community.influxdata.com/u/aegisflanker)\
**Post date:** [March 11, 2021, 6:42am UTC](https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832/1 "2021-03-11T06:42:16Z")

</div>

I just installed influxdb 2.0 using docker. But when I want to enter data from the examples given. The data is not entered. But when I delete the timestamp, the data can enter. Was there any configuration that was missed.

Docker installation :  
docker run -p 8086:8086   
-v influxdb2:/var/lib/influxdb2   
influxdb:2.0

Data : mem,host=host1 used\_percent=23.43234543 1556892576842902000

[![](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/8/8e28a3df1acaf550ccc085d1421658982d477662.jpeg)](https://ibb.co/51ZSH9y)

---

<div class="post-metadata">

**Author:** ![Vhailor](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/vhailor/32/6923_2.png) [@Vhailor](https://community.influxdata.com/u/Vhailor)\
**Post date:** [March 11, 2021, 9:55am UTC](https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832/2 "2021-03-11T09:55:31Z")

</div>

I would try to find the problem.

- first change user\_percent to userpercent
- second change 23.43234543 to 23
- try changing timestamp and precision

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 11, 2021, 10:42am UTC](https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832/3 "2021-03-11T10:42:31Z")

</div>

> [@aegisflanker](#):
>
> The data is not entered.

But the data is indeed in InfluxDB - but you don’t see it. 😉  
I think there is a misunderstanding that I also stumbled upon in the beginning.  
The timestamp from your influx protocol line is around two years ago:

```txt
Friday, 3. May 2019 14:09:36.842

```

If you then go to the **Data Explorer** , you will _not_ see _any_ metrics at first, because that depends on the time span set on the right in the window in the small widget (`past 1h` or something like that).  
Unfortunately, that’s pretty irritating if you don’t know… 😒

If you were to change the time span to 2 years, or import an influx line protocol line with a current timestamp, you would see something in the Data Explorer.

If you don’t enter a timestamp, InfluxDB will automatically take the current time, which is why you see this data point in the Data Explorer and the older data point (mistakenly) not.

---

<div class="post-metadata">

**Author:** ![aegisflanker](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/aegisflanker/32/6942_2.png) [@aegisflanker](https://community.influxdata.com/u/aegisflanker)\
**Post date:** [March 11, 2021, 11:13am UTC](https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832/4 "2021-03-11T11:13:22Z")

</div>

Sorry I asked a stupid question. But it’s true I think I missed the time span window widget.

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 11, 2021, 11:16am UTC](https://community.influxdata.com/t/line-protocol-influxdb-2-0/18832/5 "2021-03-11T11:16:16Z")

</div>

> [@aegisflanker](#):
>
> Sorry I asked a stupid question

No, that’s not a stupid question - it’s got me pretty irritated too. 😉
