Make sure Share iPhone Analytics is toggled on.
Tap the "Analytics Data" option.
Scroll down until you reach the last file that begins with log-aggregated.
Drag the cursor down to the bottom and hold your finger there, it will eventually scroll very quickly.
Open the built-in Notes app and paste the contents of that file into it.
Click the action icon in the top right and then select Find in Note.