thank you for your help badger
here is the filter i'm running:
filter {
mutate {
add_field => {"source_address2" => "%{[source][ip]}" }
copy => { "[source][ip]" => "source_address"}
}
}
source_address doesnt even appear.. and source_address2 just has " "%{[source][ip]}"" i've tried every combination i can think of..
here is some of the output from rubydebug:
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties
[2019-07-03T00:28:36,212][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.2.0"}
[2019-07-03T00:28:42,582][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.RubyArray) has been create for key: cluster_uuids. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[2019-07-03T00:28:42,586][INFO ][logstash.javapipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>6, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>750, :thread=>"#<Thread:0x124f3f1e run>"}
[2019-07-03T00:28:42,869][INFO ][logstash.inputs.beats ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5044"}
[2019-07-03T00:28:42,883][INFO ][logstash.javapipeline ] Pipeline started {"pipeline.id"=>"main"}
[2019-07-03T00:28:42,974][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[2019-07-03T00:28:42,981][INFO ][org.logstash.beats.Server] Starting server on port: 5044
[2019-07-03T00:28:43,201][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
{
"input" => {
"type" => "log"
},
"source_address2" => "%{[source][ip]}",
"ecs" => {
"version" => "1.0.0"
},
"event" => {
"dataset" => "suricata.eve",
"module" => "suricata"
},
"service" => {
"type" => "suricata"
},
"fileset" => {
"name" => "eve"
},
"host" => {
"name" => "elk72",
"architecture" => "x86_64",
"id" => "0e26c676bb604f558630d782e5dae2ef",
"containerized" => false,
"os" => {
"codename" => "bionic",
"version" => "18.04.2 LTS (Bionic Beaver)",
"platform" => "ubuntu",
"family" => "debian",
"name" => "Ubuntu",
"kernel" => "4.15.0-54-generic"
},
"hostname" => "elk72"
},
"@version" => "1",
"log" => {
"file" => {
"path" => "/var/log/suricata/eve.json"
},
"offset" => 10440991
},
"@timestamp" => 2019-07-02T01:32:03.134Z,
"tags" => [
[0] "es72",
[1] "filebeat",
[2] "suricata",
[3] "beats_input_raw_event"
],
...