# Logging from within Ruby Filter

**URL:** https://discuss.elastic.co/t/logging-from-within-ruby-filter/127983
**Category:** Logstash
**Created:** [April 13, 2018, 1:27pm UTC](https://discuss.elastic.co/t/logging-from-within-ruby-filter/127983 "2018-04-13T13:27:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)
#### Post date: [April 18, 2018, 6:35am UTC](https://discuss.elastic.co/t/logging-from-within-ruby-filter/127983/2 "2018-04-18T06:35:31Z")

</div>

I have solved my Problem with a online ruby interpreter and a self written mock for event

but my question still stands, is it possible to log to the logstash log file from within the ruby filter code?

---

_[View the full topic](https://discuss.elastic.co/t/logging-from-within-ruby-filter/127983)._
