- string things that are objects

This commit is contained in:
Jordan Sissel 2013-04-19 23:18:07 -07:00
parent eefc86a928
commit 25c6d79cdd

View file

@ -69,8 +69,8 @@ class LogStash::Filters::UserAgent < LogStash::Filters::Base
event[@target] = {} if event[@target].nil?
event[@target]["name"] = ua_data.name
event[@target]["os"] = ua_data.os if not ua_data.os.nil?
event[@target]["device"] = ua_data.device if not ua_data.device.nil?
event[@target]["os"] = ua_data.os.to_s if not ua_data.os.nil?
event[@target]["device"] = ua_data.device.to_s if not ua_data.device.nil?
if not ua_data.version.nil?
ua_version = ua_data.version