Skip to content

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
- do not show expected errors
- do not show expected unreachables
  • Loading branch information
se-di committed Jul 28, 2021
1 parent 9c3d16a commit a5249f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions default/addon_builder.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[base]
builder_version = 2.2.0
builder_build = 12
is_edited = 1
builder_version = 4.0.0
builder_build = 0
is_edited = 0

2 changes: 1 addition & 1 deletion default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ label = Playbooks-On-Rails
[launcher]
author = Thomas Fischer - secure diversITy <mail|sedi.one>
description = Visualizing Ansible playbook runs executed manually and/or by PORS
version = 1.1.2
version = 1.1.3

[package]
id = sd_pors
Expand Down
15 changes: 9 additions & 6 deletions default/savedsearches.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[Failed or Unreachable plays]
search = eventtype=pors_plays session=* |eval target_env=if(isnull(target_env),"unknown",target_env) | fields * | search session=* (status="FAILED" OR status="UNREACHABLE") (target_env="*")\
| rename ansible_task.ignore_errors AS ignore_errors ansible_task.ignore_unreachable AS ignore_unreachable\
| where ignore_errors != "true" AND ignore_unreachable != "true"\
| spath path="ansible_result.msg{}" output=task_stdout | nomv task_stdout\
| spath path="ansible_result.stdout_lines{}" output=task_stdout_lines | nomv task_stdout_lines\
| rename ansible_host AS target_host, ansible_task.name AS task_name, ansible_result.msg AS ansible_result_msg, ansible_result.stderr_lines{} AS task_stderr_lines\
| eval task_output=case(isnotnull(task_stderr_lines),task_stderr_lines,isnotnull(task_stdout),task_stdout,isnotnull(task_stdout_lines),task_stdout_lines,isnotnull(ansible_result_msg),ansible_result_msg,1=1,"")\
| table _time target_env ansible_playbook task_name task_output target_host status uuid| sort -_time
disabled = 1
alert.expires = 2d
alert.severity = 4
Expand All @@ -18,9 +26,4 @@ quantity = 0
relation = greater than
request.ui_dispatch_app = sd_pors
request.ui_dispatch_view = search
search = eventtype=pors_plays session=* |eval target_env=if(isnull(target_env),"unknown",target_env) | fields * | search session=* (status="FAILED" OR status="UNREACHABLE") (target_env="*")\
| spath path="ansible_result.msg{}" output=task_stdout | nomv task_stdout\
| spath path="ansible_result.stdout_lines{}" output=task_stdout_lines | nomv task_stdout_lines\
| rename ansible_host AS target_host, ansible_task.name AS task_name, ansible_result.msg AS ansible_result_msg, ansible_result.stderr_lines{} AS task_stderr_lines\
| eval task_output=case(isnotnull(task_stderr_lines),task_stderr_lines,isnotnull(task_stdout),task_stdout,isnotnull(task_stdout_lines),task_stdout_lines,isnotnull(ansible_result_msg),ansible_result_msg,1=1,"")\
| table _time target_env ansible_playbook task_name task_output target_host status uuid| sort -_time

0 comments on commit a5249f2

Please sign in to comment.