How to download audit logs in openflow?

How to download audit logs in openflow?

That is not a feature currently implemented.
What would be the use case for downloading the audit log ?

Hi Allan,

Hope you are doing well.This is what I wanted to do.I have created the project using OpenRPA and run it from nodered.Can I access the logs genarated by bot.I think it is in backend mongoDB. Am I correct? If so can access it and delete it from myself. Thnak you.

URL for my nodered:https://myemail.app.openiap.io/

Its confusing me what your asking. You say you want to get it, but also say you want to delete it.
So what is it you are trying to achieve here?

Hi Allan,

My bad, Sorry for the confusion I have mad. I wanted it to download to my machine and if it genarates lot of log clear it out by myself.

That is not very easy to do right now.
But in a few days I will update app.openiap.io to version 1.5 and then it will be easy to write a python, nodejs or dotnet script that fetches the logs and save them to a scv file

Thanks Allen.It will be very helpful.
Thnaks again for quick response and sorting out my question.

I almost forgot the delete part.
If you just want to delete all workflow instances, you can import this into a nodered instance.

[
    {
        "id": "b85abd5a81311fd1",
        "type": "inject",
        "z": "9e73f64b7c3502dd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 540,
        "y": 40,
        "wires": [
            [
                "e89f87b343a7f915"
            ]
        ]
    },
    {
        "id": "e89f87b343a7f915",
        "type": "api delete many",
        "z": "9e73f64b7c3502dd",
        "name": "",
        "query": "{\"_type\": \"workflowinstance\"}",
        "querytype": "str",
        "collection": "openrpa_instances",
        "collectiontype": "str",
        "x": 710,
        "y": 40,
        "wires": [
            []
        ]
    }
]

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.