From ac988502236a78f278a599d95f39f5d8534293c5 Mon Sep 17 00:00:00 2001 From: Andy Lake Date: Fri, 18 Aug 2023 08:50:22 -0400 Subject: [PATCH] A couple tweaks to make working with DNS and HTTP test results easier --- .../perfsonar-logstash/pipeline/06-result_dns.conf | 12 ++++++++++++ .../perfsonar-logstash/pipeline/06-result_http.conf | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 perfsonar-logstash/perfsonar-logstash/pipeline/06-result_dns.conf create mode 100644 perfsonar-logstash/perfsonar-logstash/pipeline/06-result_http.conf diff --git a/perfsonar-logstash/perfsonar-logstash/pipeline/06-result_dns.conf b/perfsonar-logstash/perfsonar-logstash/pipeline/06-result_dns.conf new file mode 100644 index 0000000..cb801c6 --- /dev/null +++ b/perfsonar-logstash/perfsonar-logstash/pipeline/06-result_dns.conf @@ -0,0 +1,12 @@ +filter { + if [test][type] == "dns"{ + ruby { + path => "/usr/lib/perfsonar/logstash/ruby/pscheduler_iso8601_duration.rb" + script_params => { + "fields" => [ + "[result][time]" + ] + } + } + } +} \ No newline at end of file diff --git a/perfsonar-logstash/perfsonar-logstash/pipeline/06-result_http.conf b/perfsonar-logstash/perfsonar-logstash/pipeline/06-result_http.conf new file mode 100644 index 0000000..0929bf6 --- /dev/null +++ b/perfsonar-logstash/perfsonar-logstash/pipeline/06-result_http.conf @@ -0,0 +1,12 @@ +filter { + if [test][type] == "http"{ + ruby { + path => "/usr/lib/perfsonar/logstash/ruby/pscheduler_iso8601_duration.rb" + script_params => { + "fields" => [ + "[result][time]" + ] + } + } + } +} \ No newline at end of file