mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- include log_type in a LogKeysResponse message
This commit is contained in:
parent
4755c0ae1c
commit
4afa19646b
2 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ module LogStash; module Net; module Messages
|
|||
register
|
||||
|
||||
# Message attributes
|
||||
hashbind :log_type, "/args/log_type"
|
||||
hashbind :types, "/args/types"
|
||||
end # class LogTypesResponse
|
||||
end; end; end # module LogStash::Net::Messages
|
||||
|
|
|
@ -78,6 +78,7 @@ module LogStash; module Net; module Servers
|
|||
reader, search, qp = get_ferret(request.log_type)
|
||||
response = LogStash::Net::Messages::LogKeysResponse.new
|
||||
response.keys = reader.fields
|
||||
response.log_type = request.log_type
|
||||
yield response
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue