StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html

Home Page:https://stackstorm.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JsonFormatter logging does not include liveaction_db results

s-bed opened this issue · comments

commented

SUMMARY

When using JsonFormatter on the actionrunner, liveaction_db is stripped from the log entry as it is not properly JSON formatted

STACKSTORM VERSION

Paste the output of st2 --version: st2 3.8.0, on Python 3.6.8

OS, environment, install method

Post what OS you are running this on, along with any other relevant information/

Oracle Linux Server 7.9 installed with packages

Steps to reproduce the problem

Log Audits as JsonFormatter, run an action that would usually fail

Expected Results

The liveaction_db results should've been appended to the log entry

Actual Results

When the AUDIT entry for a failed actionrunner job is written to log, the message only contains "Liveaction completed".

{"asctime": "2023-09-28 23:00:18,861", "thread": 140539033242664, "levelname": "AUDIT", "module": "base", "message": "Liveaction completed"}