ubuntu – Erro ao importar .csv no Logstash (ELK)


VM VirtualBox Ubuntu 18.04


Fiz o tutorial do site do DigitalOcean para subir o Elastic Stack (https://www.digitalocean.com/community/tutorials/como-instalar-elasticsearch-logstash-e-kibana-elastic-stack-no-ubuntu-18-04-pt) onde os arquivos de conf do Logstash estavam separados por (02-beats-input.conf, 10-syslog-filter.conf, 30-elasticsearch-output.conf) e depois eu alterei o arquivo de conf do Logstash para apenas um arquivo (logstash-cars.conf):

input {
    file {
        path => "/media/sf_shared/files"
        start_position =>  "beginning"
        sincedb_path => "/dev/null"
    }
}

filter {
    csv {
        separator => ","
        columns => ('maker', 'model', 'mileage', 'manufacture_year', 'engine_displacement', 'engine_power', 'body_type', 'color_slug', 'stk_year', 'transmission', 'door_count', 'seat_count', 'fuel_type', 'date_created', 'date_last_seen', 'price_eur' )
    }

    mutate {convert =>("mileage", "integer")}
    mutate {convert =>("price_eur", "integer")}
    mutate {convert =>("engine_power", "integer")}
    mutate {convert =>("door_count", "integer")}
    mutate {convert =>("seat_count", "integer")}
}

output {
    elastisearch {
        hosts => ("localhost:9200")
        index => "cars"
        document_type => "sold_cars"
    }

    stdout {}
}

para ele subir um .csv e ao executar os comandos cd /usr/share/logstash/bin e ./logstash -f /media/sf_shared/files/logstash-cars.conf eu obtenho o seguinte erro:

root@gbraghetti:/usr/share/logstash/bin# ./logstash -f /media/sf_shared/files/logstash-cars.conf
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
(WARN ) 2020-06-03 16:07:26.567 (LogStash::Runner) multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
(INFO ) 2020-06-03 16:07:26.593 (LogStash::Runner) runner - Starting Logstash {"logstash.version"=>"6.8.9"}
(ERROR) 2020-06-03 16:07:40.882 (Converge PipelineAction::Create<main>) registry - Tried to load a plugin's code, but failed. {:exception=>#<LoadError: no such file to load -- logstash/outputs/elastisearch>, :path=>"logstash/outputs/elastisearch", :type=>"output", :name=>"elastisearch"}
(ERROR) 2020-06-03 16:07:40.972 (Converge PipelineAction::Create<main>) agent - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::PluginLoadingError", :message=>"Couldn't find any output plugin named 'elastisearch'. Are you sure this is correct? Trying to load the elastisearch output plugin resulted in this error: no such file to load -- logstash/outputs/elastisearch", :backtrace=>("/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:211:in `lookup_pipeline_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/plugin.rb:137:in `lookup'", "org/logstash/plugins/PluginFactoryExt.java:200:in `plugin'", "org/logstash/plugins/PluginFactoryExt.java:184:in `plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:71:in `plugin'", "(eval):180:in `initialize'", "org/jruby/RubyKernel.java:1061:in `eval'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:49:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:90:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:43:in `block in execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:96:in `block in exclusive'", "org/jruby/ext/thread/Mutex.java:165:in `synchronize'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:96:in `exclusive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:39:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:334:in `block in converge_state'")}
(INFO ) 2020-06-03 16:07:41.770 (LogStash::Runner) runner - Logstash shut down.