Get the "session ID" in logs?

Just like we have the txn.id32, so we know the ID of the transaction, is there a way to know the “id/unique number” corresponding to a session in HAproxy?

The goal is to know if two transaction in haproxy logs are from the same “session”. Thanks

AFAIK such information is not stored within haproxy :confused: sessions don’t have ID it seems

Maybe this could be proposed as feature request on Github

You have date, time, source IP and source Port in the logs. This should be enough to make that determination.

Thanks @lukastribus. This might work for some cases, but not guaranteed. A user-agent can continue to use the same source port for different TCP connections.

Not immediately, but yes, there could be overlap.

I suggest you used a unique-id-format and include a request counter.

The problem you are referring to is specifically mentioned in the unique-id-format documentation.