mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- string things that are objects
This commit is contained in:
parent
eefc86a928
commit
25c6d79cdd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue