# Example Inputs logtash configuration

**URL:** <https://discuss.elastic.co/t/example-inputs-logtash-configuration/338792>\
**Category:** Logstash\
**Created:** [July 19, 2023, 1:39pm UTC](https://discuss.elastic.co/t/example-inputs-logtash-configuration/338792 "2023-07-19T13:39:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![willsy](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@willsy](https://discuss.elastic.co/u/willsy)\
**Post date:** [July 19, 2023, 1:39pm UTC](https://discuss.elastic.co/t/example-inputs-logtash-configuration/338792/1 "2023-07-19T13:39:45Z")

</div>

Hello,

Can i get help with an input configuration for logstash please?

I currently am using this as a curl to get my information, but i need this in yaml if possible

\</\>  
\</\>curl -X GET '[https://192.168.3.21:9200/\_cat/indices?v](https://192.168.3.21:9200/_cat/indices?v)' -k -u xxxx:xxxxx 'output { tcp host =\> \</\>"192.168.101.12" port =\> "666" }'  
\</\>

This is to test that it can hit the third party diode, after this i need a yaml search to effectively send everything from elastic to this IP. What i have currently is this.

\</\>  
\</\>input {  
\</\>elasticsearch {  
\</\> hosts =\> "localhost:9200"  
\</\> ssl\_enabled =\> true  
\</\> ssl\_verification\_mode =\> none  
\</\> #api\_key =\> "xxxxxx"  
\</\> user =\> "xxxxxx"  
\</\> password =\> "xxxx"  
\</\> index =\> "logs-_"  
\</\> query =\> '{ "query": { "query\_string": { "query": "_" } } }'  
\</\> size =\> 5  
\</\> scroll =\> "1m"  
\</\> docinfo =\> true  
\</\> docinfo\_target =\> "[@metadata][doc]"  
\</\> }  
\</\> }  
\</\>  
\</\> output {  
\</\> file {  
\</\> path =\> "/opt/logstash-8.8.0/test.txt"  
\</\> }  
\</\> }  
\</\>

---

<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:** [August 16, 2023, 1:40pm UTC](https://discuss.elastic.co/t/example-inputs-logtash-configuration/338792/2 "2023-08-16T13:40:25Z")

</div>

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