Syntax in logstash for plugin

I am starting with ruby and logstash. seeing following statements in http output plugin(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" }
        }
}

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.

1 Like

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