Setting up table and logs panel in dashboard

I understand how to output labels as columns in Explore.

However, how should I set up the table and logs panels in Dashboards?

Could you describe in more detail what you want to do and where your problem lies?

I am collecting application logs with loki, and I am listing log messages with a table panel.

However, the table panel shows columns such as Time, Line, tsNs, and id.
In the Explore screen, if you select a label, it is expressed as a column,
but the table panel in the dashboard does not.

When using the table panel in the dashboard,
I want to show the label value as a column.

Is there a way?

“labels” (as Loki labels, not metadata) are returned in labels field where all labels are in the JSON, which you extract with Extract fields transformation into dedicated columns for the Table panel type. E.g.: