Class: LogStash::Outputs::MicrosoftSentinelOutput
- Inherits:
-
Base
- Object
- Base
- LogStash::Outputs::MicrosoftSentinelOutput
- Defined in:
- lib/logstash/outputs/microsoft-sentinel-logstash-output.rb
Instance Method Summary collapse
-
#close ⇒ Object
def multi_receive.
-
#multi_receive(events) ⇒ Object
def register.
- #register ⇒ Object
Instance Method Details
#close ⇒ Object
def multi_receive
95 96 97 |
# File 'lib/logstash/outputs/microsoft-sentinel-logstash-output.rb', line 95 def close @events_handler.close end |
#multi_receive(events) ⇒ Object
def register
91 92 93 |
# File 'lib/logstash/outputs/microsoft-sentinel-logstash-output.rb', line 91 def multi_receive(events) @events_handler.handle_events(events) end |
#register ⇒ Object
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/logstash/outputs/microsoft-sentinel-logstash-output.rb', line 80 def register @logstash_configuration= build_logstash_configuration() # Validate configuration correctness @logstash_configuration.validate_configuration() @events_handler = @logstash_configuration.create_sample_file ? LogStash::Outputs::MicrosoftSentinelOutputInternal::SampleFileCreator::new(@logstash_configuration) : LogStash::Outputs::MicrosoftSentinelOutputInternal::LogsSender::new(@logstash_configuration) end |