<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k1LoW</author_name>
  <author_url>https://blog.hatena.ne.jp/k1LoW/</author_url>
  <blog_title>Copy/Cut/Paste/Hatena</blog_title>
  <blog_url>https://k1low.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>k1low.hatenablog.com の続きです。 ログからSQLiteのDDLやクエリを生成できるなら日時は日時としてパースできたほうが使い勝手がいいと思い実装しました*1。 github.com 名前付き正規表現でログの日時部分に名前をつけて（以下のサンプルだと time ）、そのキーを --ts-key (-k) で、時刻フォーマットを --ts-format (-T) で指定することで日時をパースしてSQLiteのクエリに反映させます。 $ tail -f /var/log/access.log | lrep -t sqlite --no-m0 '^(?P&lt;host&gt;\S*) \S…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk1low.hatenablog.com%2Fentry%2F2020%2F08%2F26%2F083000&quot; title=&quot;生ログを構造化ログに変換するツールlrepに日時パース機能をつけた - Copy/Cut/Paste/Hatena&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>2020-08-26 08:30:00</published>
  <title>生ログを構造化ログに変換するツールlrepに日時パース機能をつけた</title>
  <type>rich</type>
  <url>https://k1low.hatenablog.com/entry/2020/08/26/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
