Giúp em xem lỗi khi import data vào elasticsearch

Discussion in 'Hỏi Đáp Kỹ Thuật' started by NguyenThanhTung, Sep 22, 2021.

  1. NguyenThanhTung

    NguyenThanhTung Khách Qua Đường

    Mọi hôm em vẫn import bình thường, nay vào lại import tiếp ra lỗi này. Em đã search trên google những không fix được. Nhờ các bác có kinh nghiệm chỉ giúp em với ạ.

    /usr/share/logstash/bin/logstash -f /downloads/logstash-csv.conf
    Using bundled JDK: /usr/share/logstash/jdk
    OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated
    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
    [INFO ] 2021-09-22 13:04:47.927 [main] runner - Starting Logstash {"logstash.version"=>"7.14.0", "jruby.version"=>"jruby 9.2.19.0 (2.5.8) 2021-06-15 55810c552b OpenJDK 64-Bit Server VM 11.0.11+9 on 11.0.11+9 +indy +jit [linux-x86_64]"}
    [WARN ] 2021-09-22 13:04:48.326 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
    [INFO ] 2021-09-22 13:04:50.050 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9601}
    [INFO ] 2021-09-22 13:04:50.899 [Converge PipelineAction::Create<main>] Reflections - Reflections took 205 ms to scan 1 urls, producing 120 keys and 417 values
    [WARN ] 2021-09-22 13:04:52.115 [Converge PipelineAction::Create<main>] file - Relying on default value of `pipeline.ecs_compatibility`, which may change in a future major release of Logstash. To avoid unexpected changes when upgrading Logstash, please explicitly declare your desired
    ECS Compatibility mode.
    [WARN ] 2021-09-22 13:04:52.180 [Converge PipelineAction::Create<main>] csv - Relying on default value of `pipeline.ecs_compatibility`, which may change in a future major release of Logstash. To avoid unexpected changes when upgrading Logstash, please explicitly declare your desired ECS Compatibility mode.
    [WARN ] 2021-09-22 13:04:52.351 [Converge PipelineAction::Create<main>] elasticsearch - You are using a deprecated config setting "document_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types
    are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"document_type", :plugin=><LogStash::Outputs::ElasticSearch index=>"trung", id=>"1cb08c9c82ca44703428b550bc1ca70c9fad0dfe7dce914ee13d3b14c85d1ccb", document_id=>"%{id}", hosts=>[localhost:9200], document_type=>"csv", enable_metric=>true, codec=><LogStash::Codecs::plain id=>"plain_44d2f287-055a-42dc-a896-884a87ceb0d1", enable_metric=>true, charset=>"UTF-8">, workers=>1, ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false, retry_initial_interval=>2, retry_max_interval=>64, data_stream_type=>"logs", data_stream_dataset=>"generic", data_stream_namespace=>"default", data_stream_sync_fields=>true, data_stream_auto_routing=>true, manage_template=>true, template_overwrite=>false, doc_as_upsert=>false, script_type=>"inline", script_lang=>"painless", script_var_name=>"event", scripted_upsert=>false, retry_on_conflict=>1, ilm_enabled=>"auto", ilm_pattern=>"{now/d}-000001", ilm_policy=>"logstash-policy">}
    [WARN ] 2021-09-22 13:04:52.364 [Converge PipelineAction::Create<main>] elasticsearch - Relying on default value of `pipeline.ecs_compatibility`, which may change in a future major release of Logstash. To avoid unexpected changes when upgrading Logstash, please explicitly declare your desired ECS Compatibility mode.
    [INFO ] 2021-09-22 13:04:52.644 [[main]-pipeline-manager] elasticsearch - New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["localhost:9200"]}
    [INFO ] 2021-09-22 13:04:53.174 [[main]-pipeline-manager] elasticsearch - Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[localhost:9200/]}}
    [WARN ] 2021-09-22 13:04:53.378 [[main]-pipeline-manager] elasticsearch - Restored connection to ES instance {:url=>"localhost:9200/"}
    [INFO ] 2021-09-22 13:04:53.446 [[main]-pipeline-manager] elasticsearch - Elasticsearch version determined (7.14.0) {:es_version=>7}
    [WARN ] 2021-09-22 13:04:53.451 [[main]-pipeline-manager] elasticsearch - Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>7}
    [INFO ] 2021-09-22 13:04:53.659 [Ruby-0-Thread-10: :1] elasticsearch - Using a default mapping template {:es_version=>7, :ecs_compatibility=>:disabled}
    [INFO ] 2021-09-22 13:04:53.729 [[main]-pipeline-manager] javapipeline - Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>250, "pipeline.sources"=>["/downloads/logstash-csv.conf"], :thread=>"#<Thread:0x6c16a73f run>"}
    [INFO ] 2021-09-22 13:04:55.012 [[main]-pipeline-manager] javapipeline - Pipeline Java execution initialization time {"seconds"=>1.27}
    [INFO ] 2021-09-22 13:04:55.086 [[main]-pipeline-manager] file - No sincedb_path set, generating one based on the "path" setting {:sincedb_path=>"/usr/share/logstash/data/plugins/inputs/file/.sincedb_9605fe3fa116f274ae7237166957af25", :path=>["/downloads/list0097.csv"]}
    [INFO ] 2021-09-22 13:04:55.114 [[main]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=>"main"}
    [INFO ] 2021-09-22 13:04:55.182 [Agent thread] agent - Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
    [INFO ] 2021-09-22 13:04:55.237 [[main]<file] observingtail - START, creating Discoverer, Watch with file and sincedb collections
     
  2. firefox

    firefox Bang Chúng

    Gần đây bạn có update version của cái nào trong ELK ko, tất cả đều bản mới nhất chưa?
     
    NguyenThanhTung likes this.
  3. NguyenThanhTung

    NguyenThanhTung Khách Qua Đường

    Cám ơn bác nhiều hôm em cài lại luôn rồi bác. Giờ em đang tìm cách đồng bộ như bác gợi ý :D Làm được 1 cái thấy vui hẳn bác :D
     
    firefox likes this.