mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -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
|
register
|
||||||
|
|
||||||
# Message attributes
|
# Message attributes
|
||||||
|
hashbind :log_type, "/args/log_type"
|
||||||
hashbind :types, "/args/types"
|
hashbind :types, "/args/types"
|
||||||
end # class LogTypesResponse
|
end # class LogTypesResponse
|
||||||
end; end; end # module LogStash::Net::Messages
|
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)
|
reader, search, qp = get_ferret(request.log_type)
|
||||||
response = LogStash::Net::Messages::LogKeysResponse.new
|
response = LogStash::Net::Messages::LogKeysResponse.new
|
||||||
response.keys = reader.fields
|
response.keys = reader.fields
|
||||||
|
response.log_type = request.log_type
|
||||||
yield response
|
yield response
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue