Recently upgraded Logstash to 7.8.1 and unable to start Logstash. The error message I am getting:
[2020-08-18T22:56:00,488][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
[2020-08-18T22:56:00,619][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2020-08-18T22:56:05,667][INFO ][logstash.runner ] Logstash shut down.
[2020-08-18T22:56:18,927][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.8.1", "jruby.version"=>"jruby 9.2.11.1 (2.5.7) 2020-03-25 b1f55b1a40 OpenJDK 64-Bit Server VM 11.0.8+10-post-Ubuntu-0ubuntu118.04.1 on 11.0.8+10-post-Ubuntu-0ubuntu118.04.1 +indy +jit [linux-x86_64]"}
[2020-08-18T22:56:21,981][INFO ][org.reflections.Reflections] Reflections took 27 ms to scan 1 urls, producing 21 keys and 41 values
[2020-08-18T22:59:13,114][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
Here is my configs:
01_input.conf:
input {
beats {
port => 5044
ssl => true
ssl_certificate => "/etc/logstash/conf.d/certs/logstash-forwarder.crt"
ssl_key => "/etc/logstash/conf.d/certs/logstash-forwarder.key"
}
}
23_outputs.conf:
output {
if "%ASA-" in [message] {
s3 {
access_key_id => "Removed"
secret_access_key => "Removed"
region => "us-east-1"
bucket => "logs"
prefix => "logs/cisco-asa/%{+YYYY}/%{+MM}/%{+dd}"
size_file => "500000000"
time_file => "5"
codec => "json_lines"
storage_class => "STANDARD"
}
}
if [pan_type] == "TRAFFIC" {
s3 {
access_key_id => "Removed"
secret_access_key => "Removed"
region => "us-east-1"
bucket => "logs"
prefix => "logs/palo-alto/%{+YYYY}/%{+MM}/%{+dd}"
size_file => "500000000"
time_file => "5"
codec => "json_lines"
storage_class => "STANDARD"
}
}
else if [pan_type] == "THREAT" {
s3 {
access_key_id => "Removed"
secret_access_key => "Removed"
region => "us-east-1"
bucket => "logs"
prefix => "logs/palo-alto/%{+YYYY}/%{+MM}/%{+dd}"
size_file => "500000000"
time_file => "5"
codec => "json_lines"
storage_class => "STANDARD"
}
}
else if [pan_type] == "SYSTEM" {
s3 {
access_key_id => "Removed"
secret_access_key => "Removed"
region => "us-east-1"
bucket => "logs"
prefix => "logs/palo-alto/%{+YYYY}/%{+MM}/%{+dd}"
size_file => "500000000"
time_file => "5"
codec => "json_lines"
storage_class => "STANDARD"
}
}
}
logstash.yml:
node.name: logstash
path.data: /var/lib/logstash
log.level: info
path.logs: /var/log/logstash
FWIW I am using an AWS instance with Ubuntu 18.04 installed