# Configure Logstash to Output Nagios Beats to NSCA - Nagios logs?

**URL:** <https://discuss.elastic.co/t/configure-logstash-to-output-nagios-beats-to-nsca-nagios-logs/197418>\
**Category:** Beats\
**Created:** [August 29, 2019, 8:36pm UTC](https://discuss.elastic.co/t/configure-logstash-to-output-nagios-beats-to-nsca-nagios-logs/197418 "2019-08-29T20:36:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![PhaedrusTheGreek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phaedrusthegreek/32/4884_2.png) [@PhaedrusTheGreek](https://discuss.elastic.co/u/PhaedrusTheGreek)\
**Post date:** [August 31, 2019, 2:46pm UTC](https://discuss.elastic.co/t/configure-logstash-to-output-nagios-beats-to-nsca-nagios-logs/197418/4 "2019-08-31T14:46:58Z")

</div>

Maybe there's a bug in the plugin. I haven't tested this, but you could try editing `nagios_nsca.rb` and changing line 104 to this:

```auto
message = "#{nagios_host}:#{nagios_service}:#{status.to_s}:#{msg}"

```

I saw [another similar report](https://discuss.elastic.co/t/lostash-nagios-nsca-plugin-nagios-status/179377) that was never resolved. Let me know if that fixes it, and we can dig deeper in the week.

---

_[View the full topic](https://discuss.elastic.co/t/configure-logstash-to-output-nagios-beats-to-nsca-nagios-logs/197418)._
