# Syntax in logstash for plugin

**URL:** <https://discuss.elastic.co/t/syntax-in-logstash-for-plugin/101606>\
**Category:** Logstash\
**Created:** [September 24, 2017, 4:26pm UTC](https://discuss.elastic.co/t/syntax-in-logstash-for-plugin/101606 "2017-09-24T16:26:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_Sharan\_Mittal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_sharan_mittal/32/47018_2.png) [@Ram\_Sharan\_Mittal](https://discuss.elastic.co/u/Ram_Sharan_Mittal)\
**Post date:** [September 24, 2017, 4:26pm UTC](https://discuss.elastic.co/t/syntax-in-logstash-for-plugin/101606/1 "2017-09-24T16:26:54Z")

</div>

I am starting with ruby and logstash. seeing following statements in http output plugin([https://github.com/logstash-plugins/logstash-output-http](https://github.com/logstash-plugins/logstash-output-http)) at , What are these systax. Is it ruby syntax or logstash or jruby:

```
 RETRYABLE_MANTICORE_EXCEPTIONS = [
    ::Manticore::Timeout,
    ::Manticore::SocketException,
    ::Manticore::ClientProtocolException, 
    ::Manticore::ResolutionFailure, 
    ::Manticore::SocketTimeout
  ]

```

and

```
config :url, :validate => :string, :required => :true

```

and when we defined filter in conf file, what syntax. Is is some ruby code and format defined by logstash:

```
input
{stdin {}}

filter{
grok{}
}

output{
        if [type] != "dots" {
                stdout{ codec=>"rubydebug" }
        } else {
                stdout{ codec=>"dots" }
        }
}
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 24, 2017, 8:47pm UTC](https://discuss.elastic.co/t/syntax-in-logstash-for-plugin/101606/2 "2017-09-24T20:47:02Z")

</div>

> What are these systax. Is it ruby syntax or logstash or jruby:

That's Ruby code. Ruby code can also be run by the JVM-based JRuby interpreter.

> and when we defined filter in conf file, what syntax. Is is some ruby code and format defined by logstash:

Pipeline configuration files are Logstash-specific. They're not Ruby or any other programming language.

---

<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:** [October 22, 2017, 8:47pm UTC](https://discuss.elastic.co/t/syntax-in-logstash-for-plugin/101606/3 "2017-10-22T20:47:12Z")

</div>

Closed on October 22, 2017, 8:47pm UTC

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