# Curl command to logstash

**URL:** <https://discuss.elastic.co/t/curl-command-to-logstash/282266>\
**Category:** Logstash\
**Created:** [August 23, 2021, 5:27pm UTC](https://discuss.elastic.co/t/curl-command-to-logstash/282266 "2021-08-23T17:27:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bamsom](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bamsom](https://discuss.elastic.co/u/bamsom)\
**Post date:** [August 23, 2021, 5:27pm UTC](https://discuss.elastic.co/t/curl-command-to-logstash/282266/1 "2021-08-23T17:27:27Z")

</div>

I am running a curl command which gives me a numeric output. I have the input setup as exec \> command \> curl. I am outputting that data into Elastic search. I see the message as the numeric output. When I try to visualize the data, I get Count = (number of docs) but what I would like is Count = (number in the message field).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 23, 2021, 9:35pm UTC](https://discuss.elastic.co/t/curl-command-to-logstash/282266/2 "2021-08-23T21:35:38Z")

</div>

Welcome to our community! 😃

Can you share your config?

---

<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:** [September 20, 2021, 9:36pm UTC](https://discuss.elastic.co/t/curl-command-to-logstash/282266/3 "2021-09-20T21:36:31Z")

</div>

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