Class: LogStash::Modules::KibanaImporter
- Inherits:
-
Object
- Object
- LogStash::Modules::KibanaImporter
- Includes:
- Util::Loggable
- Defined in:
- lib/logstash/modules/kibana_importer.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ KibanaImporter
constructor
A new instance of KibanaImporter.
- #put(via_kibana) ⇒ Object
Constructor Details
#initialize(client) ⇒ KibanaImporter
Returns a new instance of KibanaImporter.
5 6 7 |
# File 'lib/logstash/modules/kibana_importer.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#put(via_kibana) ⇒ Object
9 10 11 12 13 |
# File 'lib/logstash/modules/kibana_importer.rb', line 9 def put(via_kibana) path = via_kibana.import_path logger.debug("Attempting POST", :url_path => path, :content => via_kibana.content) via_kibana.import(@client) end |