Class: LogStash::Outputs::MicrosoftSentinelOutput

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

Instance Method Summary collapse

Instance Method Details

#closeObject

def multi_receive



87
88
89
# File 'lib/logstash/outputs/microsoft-sentinel-log-analytics-logstash-output-plugin.rb', line 87

def close
  @events_handler.close
end

#multi_receive(events) ⇒ Object

def register



83
84
85
# File 'lib/logstash/outputs/microsoft-sentinel-log-analytics-logstash-output-plugin.rb', line 83

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

#registerObject



72
73
74
75
76
77
78
79
80
81
# File 'lib/logstash/outputs/microsoft-sentinel-log-analytics-logstash-output-plugin.rb', line 72

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