<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>te2u</author_name>
  <author_url>https://blog.hatena.ne.jp/te2u/</author_url>
  <blog_title>作業ノート</blog_title>
  <blog_url>https://te2u.hatenablog.jp/</blog_url>
  <categories>
    <anon>logrotate</anon>
  </categories>
  <description>仕事で小さなプログラムを書くことになり、その出力ログを管理するために簡単なlogrotateの設定を行った。そのときのメモ。 cat &lt;&lt;'EOT' | sudo tee /etc/logrotate.d/foo &gt; /dev/null /path/to/log/foo.log { missingok monthly rotate 36 compress ifempty create 0664 bar bar dateext } EOT 設定項目 各項目の役割について。 missingok ローテーションするログがなくてもエラーにしない。 monthly 月1回、ローテーションする。/var/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fte2u.hatenablog.jp%2Fentry%2F2017%2F10%2F19%2F215142&quot; title=&quot;logrotateの設定メモ - 作業ノート&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>2017-10-19 21:51:42</published>
  <title>logrotateの設定メモ</title>
  <type>rich</type>
  <url>https://te2u.hatenablog.jp/entry/2017/10/19/215142</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
