# %{host} %{message} error logstash

**URL:** https://discuss.elastic.co/t/host-message-error-logstash/132040
**Category:** Logstash
**Created:** [May 16, 2018, 6:31am UTC](https://discuss.elastic.co/t/host-message-error-logstash/132040 "2018-05-16T06:31:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alok](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Alok](https://discuss.elastic.co/u/Alok)
#### Post date: [May 16, 2018, 6:31am UTC](https://discuss.elastic.co/t/host-message-error-logstash/132040/1 "2018-05-16T06:31:00Z")

</div>

I am trying to put some data from protgres to Elasticsearch through jdbc.

When I execute the command  
/bin/logstash -f \<FIlename.con f\>

the pipeline gets started , the execution reaches to the point where select query is about to be fired and then abruptly the pipeline terminates showing the below error -  
%{host} %{message}  
%{host} %{message}  
%{host} %{message}

Interestingly , this works fine in another machine. Both systems have same version of Java.

---

<div class="post-metadata">

### Author: ![Alok](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Alok](https://discuss.elastic.co/u/Alok)
#### Post date: [May 16, 2018, 7:10am UTC](https://discuss.elastic.co/t/host-message-error-logstash/132040/2 "2018-05-16T07:10:31Z")

</div>

This issue is closed. I was not using stdout { codec =\> json } or rubydebug and hence was thinking its some kind of error.

---

<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: [June 13, 2018, 7:10am UTC](https://discuss.elastic.co/t/host-message-error-logstash/132040/3 "2018-06-13T07:10:58Z")

</div>

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