# How to write Logstash input to get data from Rest API

**URL:** https://discuss.elastic.co/t/how-to-write-logstash-input-to-get-data-from-rest-api/210687
**Category:** Logstash
**Created:** [December 5, 2019, 11:26am UTC](https://discuss.elastic.co/t/how-to-write-logstash-input-to-get-data-from-rest-api/210687 "2019-12-05T11:26:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)
#### Post date: [December 5, 2019, 11:26am UTC](https://discuss.elastic.co/t/how-to-write-logstash-input-to-get-data-from-rest-api/210687/1 "2019-12-05T11:26:44Z")

</div>

Hi team,  
I'm new to ELK ( using 7.2.0) and  
I need to connect to ServiceNow through a Rest API connection,  
I'm not exactly sure of how to proceed with it.

Can anyone give me a simple example of how the Logstash conf file should be written?  
I'd really appreciate it.

Thanks in advance!

---

<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: [January 2, 2020, 11:26am UTC](https://discuss.elastic.co/t/how-to-write-logstash-input-to-get-data-from-rest-api/210687/2 "2020-01-02T11:26:58Z")

</div>

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