StackStorm / st2web

StackStorm Web UI
http://www.stackstorm.com/features
Apache License 2.0
102 stars 83 forks source link

Provision on Stackstorm UI for reviewing the logs for past days/months and an option to export the log files #1004

Open zsmanjot opened 1 year ago

zsmanjot commented 1 year ago

As per the discussion under https://github.com/StackStorm/st2/discussions/5974 opening this issue for requesting a feature.

Would want to see a feature in the UI where we can have the option to download the logs related to the actions/workflows executed by Stackstorm at a specific date and time . Facilitating it with an example: Like the way we have a full fledged option to download the logs of pagerduty / nagios , in the similar fashion , it would be beneficial for an organization that is leveraging stackstorm extensively for automating the environment to review these logs periodically.

Would like the UI to support the downloading of the CSV report of these logs for past 2-3 months or atleast weeks. This will actively help to analyze the actions that stackstorm took in form of workflows/actions.

Because i have been working on pagerduty as well . I could see the logs coming in from nagios and then Pager reaching out to us. What all it paged can be viewed for any past date/time as well (a month/week older). Below is the link that explains it well : https://support.pagerduty.com/docs/analytics#section-incidents-report

Let me know the views on it. Will be happy to provide any other information if required.

arm4b commented 1 year ago

Sounds like a helpful feature overall, not sure though how many people would really need it as it might be specific to your environment. A few ideas:

Thinking about the corner cases, one of the difficulties could be trying to export in one go a lot of data from every execution in a long daterange (might need ST2 api changes). From that standpoint custom st2 action + cron task might be more reliable.

zsmanjot commented 1 year ago

Hi @armab

Thanks for looking into it. This feature will be useful by the people/organisations who are extensively using Stackstorm in their environment. Vision is to make stackstorm more efficient by introducing the things/features that will definitely be required by an organization who has a lot of reliability on Stackstorm as we have.

We already have custom cron running in our environment. The sample is as below. But think about having this feature in stackstorm GUI serving this purpose helping in directly downloading the required csv report for analysing the actions that stackstorm is taking. I would say good to have feature kind of thing.

Yes definitely helpful in my case.

image image