Scripting to read gateway logs

Ah, I started going the approach of hitting the http://localhost/data/status/logs endpoint, but was struggling with getting a JSESSIONID. Any ideas on how to get that with the builtin Ignition IDP enabled?

In regards to configuring logback, you can actually configure it to push straight into a database as well with a database appender. I am just looking for something to hit the internal logs directly through a project script.

Is there any reason you would say to go with the approach of parsing the wrapper log vs the logs endpoint? Other than the fact that's probably an implementation detail lol