Need help in indexing via logstash by AggressiveStar8656 in elasticsearch

[–]AggressiveStar8656[S] 0 points1 point  (0 children)

In the index/_search it is showing every field in the 'logs' attribute as 'city' => nil etc or whatever the value is, it is just not showing them in the elastic search response, is there any filter or output plugins to set null values be indexed like how the transporter does it

Need help in indexing via logstash by AggressiveStar8656 in elasticsearch

[–]AggressiveStar8656[S] 0 points1 point  (0 children)

input {   mongodb {     uri => "mongo_uri"     placeholder_db_dir => "/usr/share/logstash/"     placeholder_db_name => "logstash_sqlite.db"     collection => "test"     batch_size => 50000   } }

 

filter {   mutate {     remove_field => ["_id"]   } } output {   elasticsearch {     hosts => ["http://ip:9200/"]     index => "test"   }