HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/share/filebeat/module/suricata/eve/ingest/dns-answer-v2.yml
---
description: Pipeline for Suricata DNS answers v2

# Suricata DNS v2 events contain all answers in a single event.
processors:
  - rename:
      field: suricata.eve.dns.answers
      target_field: dns.answers
      ignore_missing: true
  - script:
      if: ctx?.dns?.answers != null
      lang: painless
      tag: suricata_dns_answers_v2
      source: |
        def resolvedIps = new ArrayList();
        for (def answer : ctx?.dns?.answers) {
            // Normalize field names to match ECS.
            def name = answer.remove("rrname");
            if (name != null) {
                answer["name"] = name;
            }
            def type = answer.remove("rrtype");
            if (type != null) {
                answer["type"] = type;
            }
            def data = answer.remove("rdata");
            if (data != null) {
                answer["data"] = data;
            }

            if (type == "A" || type == "AAAA") {
                resolvedIps.add(data);
            }
        }

        if (resolvedIps.size() > 0) {
            ctx.dns.resolved_ip = resolvedIps;
        }
on_failure:
  - append:
      field: error.message
      value: >-
        error in DNS v2 pipeline:
        error in [{{_ingest.on_failure_processor_type}}] processor{{#_ingest.on_failure_processor_tag}}
        with tag [{{_ingest.on_failure_processor_tag }}]{{/_ingest.on_failure_processor_tag}}
        {{ _ingest.on_failure_message }}