mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- Use @source_host and @source_path
This commit is contained in:
parent
2f60cdb558
commit
9c68e35548
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ module LogStash; class Event
|
|||
def source=(val)
|
||||
if val.is_a?(URI)
|
||||
@data["@source"] = val.to_s
|
||||
@data["@host"] = val.host
|
||||
@data["@path"] = val.path
|
||||
@data["@source_host"] = val.host
|
||||
@data["@source_path"] = val.path
|
||||
else
|
||||
@data["@source"] = val
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue