mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
98f0670223
commit
d1c51f7d62
1 changed files with 6 additions and 2 deletions
|
@ -7,8 +7,12 @@ module LogStash
|
||||||
module Commands
|
module Commands
|
||||||
class DefaultMetadata < Commands::Base
|
class DefaultMetadata < Commands::Base
|
||||||
def all
|
def all
|
||||||
{:host => host, :version => version, :http_address => http_address,
|
{:host => host,
|
||||||
:id => service.agent.id, :name => service.agent.name}
|
:version => version,
|
||||||
|
:http_address => http_address,
|
||||||
|
:id => service.agent.id,
|
||||||
|
:name => service.agent.name,
|
||||||
|
:ephemeral_id => service.agent.ephemeral_id}
|
||||||
end
|
end
|
||||||
|
|
||||||
def host
|
def host
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue