# Logstash Input From Elastic HTTPS

**URL:** <https://discuss.elastic.co/t/logstash-input-from-elastic-https/215313>\
**Category:** Logstash\
**Created:** [January 16, 2020, 12:48pm UTC](https://discuss.elastic.co/t/logstash-input-from-elastic-https/215313 "2020-01-16T12:48:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reyhanadp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reyhanadp/32/60990_2.png) [@reyhanadp](https://discuss.elastic.co/u/reyhanadp)\
**Post date:** [January 16, 2020, 12:48pm UTC](https://discuss.elastic.co/t/logstash-input-from-elastic-https/215313/1 "2020-01-16T12:48:20Z")

</div>

hi  
I want to retrieve data from an elasticsearch server that uses https. logstash config that I use to retrieve data from elasticsearch as follows :

```
input {
 elasticsearch {
    hosts => ["https://RVRPAOR1ABC19WD:9200"]
    user => "elastic"
    password => "password1234"
    ca_file => "D:\logstash-7.5.1\certificate.crt"
    ssl => true
    index => "default-2020.01"
    query => '
    {
      "query": {
	     "match_all": {}
      }	
    } 
    '
  }
}

output {
  csv {
    fields => ["level", "Message", "source", "component","logType","fingerprint","windowsIdentity","machineName","processName","processVersion","jobId","robotName","fileName","tenantKey"]
    path => "csv-export.csv"
  }
}

filter {
   mutate {
     convert => {
		"machineId" => "integer"
        "levelOrdinal" => "integer"
     }
   }
}

```

The error I get is as follows :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/86a8d08442f1de5a10a6eb4a4a552f5a182d6db2.png)

---

<div class="post-metadata">

**Author:** ![reyhanadp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reyhanadp/32/60990_2.png) [@reyhanadp](https://discuss.elastic.co/u/reyhanadp)\
**Post date:** [January 17, 2020, 4:05pm UTC](https://discuss.elastic.co/t/logstash-input-from-elastic-https/215313/2 "2020-01-17T16:05:18Z")

</div>

SSL Error problem is complete.  
what I do is update the elastic logstash input plugin to the latest version.  
The following is the address of the elastic logstash input plugin:

> **[logstash-plugins/logstash-input-elasticsearch](https://github.com/logstash-plugins/logstash-input-elasticsearch)**
>
> Contribute to logstash-plugins/logstash-input-elasticsearch development by creating an account on GitHub.

---

<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:** [February 14, 2020, 4:05pm UTC](https://discuss.elastic.co/t/logstash-input-from-elastic-https/215313/3 "2020-02-14T16:05:20Z")

</div>

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