mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Add missing 'require "socket"'
Audited files using 'Socket.gethostname' but didn't require "socket" using the following command: ack -L 'require "socket"' $(ack -l 'Socket.gethostname' lib) Fixes LOGSTASH-1974
This commit is contained in:
parent
d30a9e5bfc
commit
a4f72686c7
2 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
require "logstash/namespace"
|
||||
require "logstash/outputs/base"
|
||||
require "stud/buffer"
|
||||
require "socket" # for Socket.gethostname
|
||||
|
||||
# This output lets you store logs in Elasticsearch and is the most recommended
|
||||
# output for Logstash. If you plan on using the Kibana web interface, you'll
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# encoding: utf-8
|
||||
require "logstash/outputs/base"
|
||||
require "logstash/namespace"
|
||||
require "socket" # for Socket.gethostname
|
||||
|
||||
# TODO integrate aws_config in the future
|
||||
#require "logstash/plugin_mixins/aws_config"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue