That feels like a bug to me. The regex (here) has two capture groups, which set the os name and os_major_version. However, the filter appears to only set the os_major_version if it also has os_minor_version!
if os.minor && os.major
event.set(@prefixed_os_major, os.major.dup.force_encoding(Encoding::UTF_8)) if os.major
event.set(@prefixed_os_minor, os.minor.dup.force_encoding(Encoding::UTF_8)) if os.minor
end
makes no sense to me. Both event.set calls are conditional on things that have just been tested and proven true. Perhaps
if os.minor || os.major
was intended. Or maybe
if os.major
event.set(@prefixed_os_major, os.major.dup.force_encoding(Encoding::UTF_8))
event.set(@prefixed_os_minor, os.minor.dup.force_encoding(Encoding::UTF_8)) if os.minor
end
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.