# "logstash output exec " no output

**URL:** https://discuss.elastic.co/t/logstash-output-exec-no-output/206289
**Category:** Logstash
**Created:** [November 3, 2019, 1:43pm UTC](https://discuss.elastic.co/t/logstash-output-exec-no-output/206289 "2019-11-03T13:43:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pegasus-zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pegasus-zhang/32/57064_2.png) [@pegasus-zhang](https://discuss.elastic.co/u/pegasus-zhang)
#### Post date: [November 3, 2019, 1:43pm UTC](https://discuss.elastic.co/t/logstash-output-exec-no-output/206289/1 "2019-11-03T13:43:35Z")

</div>

i tried the exec plugin of logstash:  
output {  
exec {  
codec =\> line { format =\> "%{message}"}  
command =\> "echo %{message}"  
}  
}  
but nothing print out , only shown:  
[2019-10-30T22:18:42,715][INFO][logstash.outputs.exec][main]

why nothing printed ? (it can be sure that the "message" is not null)

---

<div class="post-metadata">

### Author: ![pegasus-zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pegasus-zhang/32/57064_2.png) [@pegasus-zhang](https://discuss.elastic.co/u/pegasus-zhang)
#### Post date: [November 3, 2019, 1:47pm UTC](https://discuss.elastic.co/t/logstash-output-exec-no-output/206289/2 "2019-11-03T13:47:18Z")

</div>

while message can be show using "stdout"  
output {  
stdout {  
codec =\> line { format =\> "%{message}"}  
}  
}

why "exec" is invalid ?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [November 3, 2019, 2:20pm UTC](https://discuss.elastic.co/t/logstash-output-exec-no-output/206289/3 "2019-11-03T14:20:20Z")

</div>

Try enabling log.level debug

---

<div class="post-metadata">

### Author: ![pegasus-zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pegasus-zhang/32/57064_2.png) [@pegasus-zhang](https://discuss.elastic.co/u/pegasus-zhang)
#### Post date: [November 15, 2019, 7:17am UTC](https://discuss.elastic.co/t/logstash-output-exec-no-output/206289/4 "2019-11-15T07:17:53Z")

</div>

now it works , thanks 😝

---

<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: [December 13, 2019, 7:17am UTC](https://discuss.elastic.co/t/logstash-output-exec-no-output/206289/5 "2019-12-13T07:17:59Z")

</div>

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