<p>I'm using the handy <code>kubectl logs -l label=value</code> command to get log from all my pods matching a label. I want to see which pod outputted what log, but only the log text is displayed. Is there a way to control the log format, or a command argument which will let me do this?</p>

Dhiraj Gupta
<p><code>kubectl</code> now has a <code>--prefix</code> option that allows you to prefix the pod name before the log message.</p>
