Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensearch version is 2.6 and OS is Ubuntu
Describe the issue:
I am trying to ingest a data from packetbeat to opensearch through logstash and its failing. Any idea if any other settings needs to be activated?
Configuration:
Relevant Logs or Screenshots:
[2023-03-14T20:57:14,498][WARN ][logstash.outputs.opensearch] Could not index event to OpenSearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"dnsamtrap-2023.03.14", :routing=>nil}, {"network"=>{"type"=>"ipv4", "bytes"=>197, "community_id"=>"1:FDgcbt/sozQ4ptt/kNRUWvOR6S4=", "transport"=>"udp", "direction"=>"egress", "protocol"=>"dns"}, "client"=>{"ip"=>"192.168.5.112", "port"=>37687, "bytes"=>70}, "dns"=>{"op_code"=>"QUERY", "flags"=>{"recursion_available"=>true, "authentic_data"=>false, "truncated_response"=>false, "authoritative"=>false, "checking_disabled"=>true, "recursion_desired"=>true}, "authorities_count"=>0, "response_code"=>"NOERROR", "resolved_ip"=>["184.105.176.47"], "opt"=>{"do"=>true, "version"=>"0", "udp_size"=>4096, "ext_rcode"=>"NOERROR"}, "header_flags"=>["RD", "RA", "CD", "DO"], "type"=>"answer", "additionals_count"=>0, "id"=>45192, "answers_count"=>2, "question"=>{"type"=>"A", "top_level_domain"=>"net", "name"=>"community.emergingthreats.net", "subdomain"=>"community", "class"=>"IN", "etld_plus_one"=>"emergingthreats.net", "registered_domain"=>"emergingthreats.net"}, "answers"=>[{"data"=>"emergingthreats.hosted-by-discourse.com", "ttl"=>"300", "name"=>"community.emergingthreats.net", "type"=>"CNAME", "class"=>"IN"}, {"data"=>"184.105.176.47", "ttl"=>"600", "name"=>"emergingthreats.hosted-by-discourse.com", "type"=>"A", "class"=>"IN"}]}, "@version"=>"1", "related"=>{"ip"=>["192.168.5.112", "208.67.222.222", "184.105.176.47"]}, "event"=>{"start"=>"2023-03-14T15:27:12.954Z", "end"=>"2023-03-14T15:27:13.027Z", "type"=>["connection", "protocol"], "category"=>["network_traffic", "network"], "dataset"=>"dns", "kind"=>"event", "duration"=>73138000}, "server"=>{"ip"=>"208.67.222.222", "port"=>53, "bytes"=>127}, "resource"=>"community.emergingthreats.net", "destination"=>{"ip"=>"208.67.222.222", "port"=>53, "bytes"=>127}, "method"=>"QUERY", "type"=>"dns", "ecs"=>{"version"=>"1.8.0"}, "@timestamp"=>2023-03-14T15:27:12.954Z, "host"=>{"name"=>"dns-am-trap"}, "tags"=>["beats_input_raw_event", "_grokparsefailure"], "status"=>"OK", "source"=>{"ip"=>"192.168.5.112", "port"=>37687, "bytes"=>70}, "query"=>"class IN, type A, community.emergingthreats.net", "agent"=>{"version"=>"7.12.1", "type"=>"packetbeat", "id"=>"13453dea-bcdd-4f7f-93ae-ac66eb2d1017", "ephemeral_id"=>"809cbf7c-17e9-4679-a04d-8c05a025ebeb", "name"=>"dns-am-trap", "hostname"=>"dns-am-trap"}}], :response=>{"index"=>{"_index"=>"dnsamtrap-2023.03.14", "_id"=>"fMm74IYBFnhqGyylkvM-", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [host] of type [text] in document with id 'fMm74IYBFnhqGyylkvM-'. Preview of field's value: '{name=dns-am-trap}'", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:1646"}}}}}