<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tboffice</author_name>
  <author_url>https://blog.hatena.ne.jp/tboffice/</author_url>
  <blog_title>検討!目論見委員会Z</blog_title>
  <blog_url>https://tboffice.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>とあるサーバのログのtail -f の結果を、他のサーバからtcp経由で取れる方法はないかと探したときのメモ。 結論 tail -f /var/log/apache_access.log | nc -l 1234 -k 参考：Tail a log-file over the network その状態で、同じサーバからtelnet localhost 1234ってやるとまあ、そんな感じ。ブラウザで見るなら、お作法的にHTTP的なヘッダを付けてあげよう。参考URLを参照。まあ、付けなくても表示できるけど。 あと、-kを付けないとアレゲ。続きはmanで。-kを付ける方法を書いてあったblogがあった…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftboffice.hatenablog.jp%2Fentry%2F2013%2F03%2F02%2F075925&quot; title=&quot;echo &amp;quot;ログや文字列をネットワーク上に送信する&amp;quot; | nc - 検討!目論見委員会Z&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-02 07:59:25</published>
  <title>echo &quot;ログや文字列をネットワーク上に送信する&quot; | nc</title>
  <type>rich</type>
  <url>https://tboffice.hatenablog.jp/entry/2013/03/02/075925</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
