Class: LogStash::Outputs::MicrosoftSentinelOutput

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash/outputs/microsoft-sentinel-logstash-output-plugin.rb

Instance Method Summary collapse

Instance Method Details

#closeObject

def multi_receive



81
82
83
# File 'lib/logstash/outputs/microsoft-sentinel-logstash-output-plugin.rb', line 81

def close
  @events_handler.close
end

#multi_receive(events) ⇒ Object

def register



77
78
79
# File 'lib/logstash/outputs/microsoft-sentinel-logstash-output-plugin.rb', line 77

def multi_receive(events)
  @events_handler.handle_events(events)
end

#registerObject



66
67
68
69
70
71
72
73
74
75
# File 'lib/logstash/outputs/microsoft-sentinel-logstash-output-plugin.rb', line 66

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