7,164
edits
Line 485: | Line 485: | ||
ruby filter が 変更。 | ruby filter が 変更。 | ||
[https://www.elastic.co/guide/en/logstash/5.0/breaking-changes.html#_ruby_filter_and_custom_plugin_developers Ruby Filter and Custom Plugin Developers] | [https://www.elastic.co/guide/en/logstash/5.0/breaking-changes.html#_ruby_filter_and_custom_plugin_developers Ruby Filter and Custom Plugin Developers] | ||
Line 496: | Line 495: | ||
ruby { | ruby { | ||
codec => "event['product']['version'] = event['major'] + '.' + event['minor']" | codec => "event['product']['version'] = event['major'] + '.' + event['minor']" | ||
} | |||
} | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="javascript" enclose="div"> | |||
filter { | |||
ruby { | |||
codec => "event.set('name', 'Logstash')" | |||
} | |||
ruby { | |||
codec => "event.set('[product][version]', event.get('major') + '.' + event.get('minor'))" | |||
} | } | ||
} | } |