A defect can be created from the Flow Logs and connected to a Flow.
Please follow the steps below to create a defect from the Logs:
Select the target Flow.
Go to the Logs tab.
Navigate to the failed step.
Click on Create Defect button. The popup window with the new defect with pre-populated steps in the description field will be opened.
Fill in necessary fields and click Save.
When removing the defect, the relationships with the flow are removed as well.