# Loading not successful with File Plugin

**URL:** <https://community.influxdata.com/t/loading-not-successful-with-file-plugin/16710>\
**Category:** Systems\
**Created:** [November 12, 2020, 7:59pm UTC](https://community.influxdata.com/t/loading-not-successful-with-file-plugin/16710 "2020-11-12T19:59:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oom](https://avatars.discourse-cdn.com/v4/letter/o/d26b3c/32.png) [@oom](https://community.influxdata.com/u/oom)\
**Post date:** [November 12, 2020, 7:59pm UTC](https://community.influxdata.com/t/loading-not-successful-with-file-plugin/16710/1 "2020-11-12T19:59:25Z")

</div>

Hi ,  
I am trying to load a text file using file plugin and want to load into Influxdb.by doing so i am getting error and load is not successful. Can you please assist as i am new to this.  
My config file is ,  
[agent]  
debug = true

[[outputs.influxdb]]

url = “[http://localhost:8086](http://localhost:8086)”  
database = “NOAA”

[[inputs.file]]  
files = [“/home/ec2-user/sampe\_file.txt”]  
data\_format = “influx”

cat /home/ec2-user/sampe\_file.txt  
hi,helloi,mindia  
kohli,japan,aus  
test,t20,ondat  
sharakuch,dilip,janta  
punjab,harmanopreet,julan

This file is not loading,please let me know where i am doing wrong

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [November 13, 2020, 6:51pm UTC](https://community.influxdata.com/t/loading-not-successful-with-file-plugin/16710/2 "2020-11-13T18:51:20Z")

</div>

Hello your file contents need to be in the Influxdata line protocol.

> **[Line protocol | InfluxDB OSS 2.6 Documentation](https://docs.influxdata.com/influxdb/v2.0/reference/syntax/line-protocol/)**
>
> InfluxDB uses line protocol to write data points. It is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point.

something like:

```auto
myMeasurement,tag1=value1,tag2=value2 fieldKey="fieldValue" 1556813561098000000

```

> **[Write data to InfluxDB | InfluxDB OSS 2.6 Documentation](https://docs.influxdata.com/influxdb/v2.0/write-data/)**
>
> Collect and write time series data to InfluxDB Cloud and InfluxDB OSS.

You might also find it useful to include `debug=true` in the agent portion of your config.
