|
12 | 12 |
|
13 | 13 | # Sophos_Central version 1.0.0 |
14 | 14 |
|
15 | | - split { |
16 | | - field => "message" |
17 | | - terminator => "<utm-log-separator>" |
| 15 | + json { |
| 16 | + source => "message" |
| 17 | + } |
| 18 | +
|
| 19 | + if ([dataType] == "sophos-central") { |
| 20 | +
|
| 21 | + mutate { |
| 22 | + rename => { "[logx][sophos_central][source_info][ip]" => "[logx][sophos_central][source_ip]"} |
| 23 | + rename => { "[logx][sophos_central][when]" => "[logx][sophos_central][timestamp_occurred_at]"} |
| 24 | + rename => { "[logx][sophos_central][created_at]" => "[logx][sophos_central][timestamp_generated_at]"} |
| 25 | + } |
| 26 | +
|
| 27 | + mutate { |
| 28 | + remove_field => ["headers", "@version", "global", "[logx][sophos_central][core_remedy_items][totalItems]"] |
| 29 | + } |
18 | 30 | } |
19 | 31 | }', 'sophos-central', null, true, 'SOPHOS', false, '2.0.1'); |
20 | 32 | ]]> |
|
25 | 37 |
|
26 | 38 |
|
27 | 39 | INSERT INTO utm_logstash_pipeline (id, pipeline_id, pipeline_name, parent_pipeline, pipeline_status, module_name, system_owner, pipeline_description, pipeline_internal, events_in, events_filtered, events_out, reloads_successes, reloads_failures, reloads_last_failure_timestamp, reloads_last_error, reloads_last_success_timestamp) |
28 | | - VALUES (56, 'sophos-central', 'Sophos Central', null, 'up', 'AWS', true, null, false, 0, 0, 0, 0, 0, null, null, null); |
| 40 | + VALUES (56, 'sophos-central', 'Sophos Central', null, 'up', 'SOPHOS', true, null, false, 0, 0, 0, 0, 0, null, null, null); |
29 | 41 |
|
30 | 42 | INSERT INTO utm_group_logstash_pipeline_filters (filter_id, pipeline_id, relation) |
31 | 43 | VALUES (1527, 56, 'PIPELINE_FILTER'); |
|
0 commit comments