Retrieve logs

Hello,

I had executed my Bonita solution several times in order to have collect a huge amount of data. I would like to do process mining and for that I need the logs being generated from my Bonita solution. Please how can I retrieve my logs?

Thanks.

hello Christ_Bryan,

To know more about logs, you can take a look at https://documentation.bonitasoft.com/bonita/2022.2/setup-dev-environment/logging

Myabe for your need, you can also use the Case API: https://documentation.bonitasoft.com/bonita/2022.2/api/cases-process-instance-api

Cheers!

Hello,

Is it possible to retrieve the information stored in the h2 database from the BDM?

It seems like the links don't help. I recently saw a webinar on process analytics with Bonita and with that you do process mining and to do it you have to retrieve logs, but I don't know where and how to retrieve logs. Don't know if you get my issue.

 

Hello Christ_Bryan,

To access your h2 BDM database, open the project explorer contextual menu of your BDM and choose Browse data (h2 console). You may run from here some SQL queries.

These links might help you: https://documentation.bonitasoft.com/bonita/2022.2/getting-started/define-business-data-model

If I understand well, you'll need to get the information of the cases (the instances of your processes) to analyze them. To fetch those can use the Case API. This example might help: https://documentation.bonitasoft.com/bonita/2022.2/api/manage-a-process#_query_archived_process_instances

Cheers!

Hello Thalia,

Saw the second link and it redirected me to a querry code, where do I have to enter the code and obtain de information?

Below is a screen of the code

https://ibb.co/hVqc3bm

Hey Christ_Bryan,

Indeed the example is using the Java APIs. If you're not using a Java application, you can use the REST APIs to get the equivalent information from your own application.

For example, for querying the archived process instances: Search archived cases (using the process id of your case to list all related cases of that process) https://documentation.bonitasoft.com/bonita/2022.2/api/cases-process-instance-api#_search_for_a_case

If you're not sure how the REST API work, take a look at this: https://documentation.bonitasoft.com/bonita/2022.2/api/rest-api-overview

Hope this helps

Hello you all,

Finally extracted the event data using the REST API technique.

Thanks for all your support.

Cheers,

For that I used the information from the website as I said (REST API) and the tutorial on Postman still from Bonitasoft tutorial to obtain the information. Here is the link to the tutorial: https://www.youtube.com/watch?v=DUgyEhIc3zQ

 

Happy to hear that!

Related question: https://community.bonitasoft.com/node/38001#node-38039