Hi Magnus,
The event is:
<157>Nov 30 20:21:43 hostname process: 10.xx.x.x 47.xxx.xx.x ip3.host.domain [30/Nov/2016:20:21:43 +0530] - "POST /url/xxx/url/xx HTTP/1.1" 200 29 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)" 0.008 0.008 .
This has 3 clientip., with 1 extrenal ip (which then is the geoip)
This is the stdout for the event:
Invalid IP address, skipping {:address=>"%{clientip}", :event=>#<LogStash::Event:0x14422092 @metadata_accessors=#<LogStash::Util::Accessors:0x12d16236 @store={}, @lut={}>, @cancelled=false, @data={"message"=>"<157>Nov 30 20:21:43 hostname process: 10.x.x.x 47.x.x.x ip3.host.domain [30/Nov/2016:20:21:43 +0530] - "POST url/x/url/x HTTP/1.1" 200 29 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)" 0.008 0.008 .", "@version"=>"1", "@timestamp"=>"2017-01-31T09:21:05.662Z", "host"=>"anu", "tags"=>["_grokparsefailure", "weblogs_3ips"], "timestamp"=>"Nov 30 20:21:43", "logsource"=>"hostname", "program"=>"process", "clientip"=>["10.x.x.x", "47.x.x.x", "ip3.host.domain"], "t"=>"30/Nov/2016:20:21:43 +0530", "verb"=>"POST", "request"=>"/apis/jionetwork/v1/checklist_v1.3/", "httpversion"=>"1.1", "response"=>"200", "bytes"=>"29", "ref"=>"-"}, @metadata={}, @accessors=#<LogStash::Util::Accessors:0x169f9c46 @store={"message"=>"<157>Nov 30 20:21:43 SMUMAPI002 nginx: 10.x.x.x 47.x.x.x ip3.host.domain [30/Nov/2016:20:21:43 +0530] - "POST /url/x/url/x HTTP/1.1" 200 29 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)" 0.008 0.008 .", "@version"=>"1", "@timestamp"=>"2017-01-31T09:21:05.662Z", "host"=>"anu", "tags"=>["_grokparsefailure", "weblogs_3ips"], "timestamp"=>"Nov 30 20:21:43", "logsource"=>hostname", "program"=>"process", "clientip"=>["10.x.x.x", "47.x.x.x", "ip3.host.domain"], "t"=>"30/Nov/2016:20:21:43 +0530", "verb"=>"POST", "request"=>"/apis/jionetwork/v1/checklist_v1.3/", "httpversion"=>"1.1", "response"=>"200", "bytes"=>"29", "ref"=>"-"}, @lut={"host"=>[{"message"=>"<157>Nov 30 20:21:43 hostname process: 10.x.x.x 47.x.x.x ip3.host.domain [30/Nov/2016:20:21:43 +0530] - "POST /apis/jionetwork/v1/checklist_v1.3/ HTTP/1.1" 200 29 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)" 0.008 0.008 .", "@version"=>"1", "@timestamp"=>"2017-01-31T09:21:05.662Z", "host"=>"anu", "tags"=>["_grokparsefailure", "weblogs_3ips"], "timestamp"=>"Nov 30 20:21:43", "logsource"=>"hostname", "program"=>"process", "clientip"=>["10.x.x.x", "47.x.x.x", "ip3.host.domain"], "t"=>"30/Nov/2016:20:21:43 +0530", "verb"=>"POST", "request"=r"/url/x/url/x", "httpversion"=>"1.1", "response"=>"200", "bytes"=>"29", "ref"=>"-"}, "host"], ...........................repeats many times............................>>, :level=>:warn}
{
"message" => "<157>Nov 30 20:21:43 hostname process: 10.xx.x.xx 47.x.x.xx ip3.host.domain [30/Nov/2016:20:21:43 +0530] - "POST /url/x/x/url/ HTTP/1.1" 200 29 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)" 0.008 0.008 .",
"@version" => "1",
"@timestamp" => "2017-01-31T09:21:05.662Z",
"host" => "anu",
"tags" => [
[0] "_grokparsefailure",
[1] "weblogs_3ips"
],
"timestamp" => "Nov 30 20:21:43",
"logsource" => "hostname",
"program" => "process",
"clientip" => [
[0] "10.x.x.x",
[1] "47.x.x.x",
[2] "ip3.host.domain"
],
"t" => "30/Nov/2016:20:21:43 +0530",
"verb" => "POST",
"request" => "/url/x/url/x/",
"httpversion" => "1.1",
"response" => "200",
"bytes" => "29",
"ref" => "-"
}