<p>Now I am running java in kubernetes pods, now I did not deployment fluentd, I have to tail log in the kubernetes dashbooard UI. But now I want to filter the java log using grep in a simple way like this:</p>
<pre><code>tail -f service.log | grep &quot;simpe info&quot;
</code></pre>
<p>Is it possible to do this, in the terminal I just tail the pod's log but I want to tail pod's running service log. Thanks.</p>

<p>You can run kubectl like as shown below</p>
<pre><code>kubectl -n &lt;namespace&gt; exec &lt;pod-name&gt; -- 'tail -f &lt;file-path/file-name&gt; | grep &quot;simpe info&quot;'
</code></pre>
