# Reading a .csv file from a remote url using filebeat and httpjson

**URL:** <https://discuss.elastic.co/t/reading-a-csv-file-from-a-remote-url-using-filebeat-and-httpjson/325415>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 13, 2023, 7:30pm UTC](https://discuss.elastic.co/t/reading-a-csv-file-from-a-remote-url-using-filebeat-and-httpjson/325415 "2023-02-13T19:30:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristiane\_Naves](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cristiane_naves/32/116397_2.png) [@Cristiane\_Naves](https://discuss.elastic.co/u/Cristiane_Naves)\
**Post date:** [February 13, 2023, 7:30pm UTC](https://discuss.elastic.co/t/reading-a-csv-file-from-a-remote-url-using-filebeat-and-httpjson/325415/1 "2023-02-13T19:30:44Z")

</div>

Hi,

I'm trying to monitor a remote URL that contains a .csv file. I need to retrieve the file and make it available in Logstash.

I'm new to this, and I'm not sure how to get started. Can anyone offer some guidance or suggest some resources I can use to learn more about this process?

A have already tried the solution [Filebeat: Configuring input from URL](https://discuss.elastic.co/t/filebeat-configuring-input-from-url/278195) but it does not work for me.

At the moment, I’m using Filebeat and the httpjson plugin. My filebeat.yml looks like:

```auto
filebeat.inputs:
- type: httpjson
 interval: 1m
 request.url: http://localhost:8002/avaliation.csv
 request.method: GET
 processors:
   - decode_csv_fields:
     fields: ["message"]
     separator: ","
     ignore_missing: false
     overwrite_keys: true
     trim_leading_space: false
     fail_on_error: true
output.logstash:
 hosts: ["logstash:5045"]

```

And my logstash conf looks like:

```auto
input {
   beats {
       port => "5045"
   }
}
filter {
  csv {}
}
output {
   elasticsearch {
       hosts => "es01:9200"
       index => "beats"
   }
}

```

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 13, 2023, 9:31pm UTC](https://discuss.elastic.co/t/reading-a-csv-file-from-a-remote-url-using-filebeat-and-httpjson/325415/2 "2023-03-13T21:31:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
