<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>steavevaivai</author_name>
  <author_url>https://blog.hatena.ne.jp/steavevaivai/</author_url>
  <blog_title>teruuuのブログ</blog_title>
  <blog_url>https://steavevaivai.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>前回ログファイルをjsonに変換した後Embulk経由でElasticsearchに取り込むのを試したのですが、ログの出力内容毎に対してパーサーを定義していなかったので、不要なものまで取り込まれていました。 steavevaivai.hatenablog.com 今回は必要なものだけを取り込めるように、またScalaを知らなくてもパーサーを定義できるように外部で宣言できるようにしたいと思います。 調べてみたところパーサジェネレータを使えば受け取った構文規則をもとにパーサーを出力するということでYaccが有名なようで、パーサジェネレータを使えばちょうどやりたいことが出来そうです。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsteavevaivai.hatenablog.com%2Fentry%2F2020%2F06%2F07%2F132834&quot; title=&quot;柔軟にログをパースできるようBNFパーサーを実装してみる - teruuuのブログ&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-06-07 13:28:34</published>
  <title>柔軟にログをパースできるようBNFパーサーを実装してみる</title>
  <type>rich</type>
  <url>https://steavevaivai.hatenablog.com/entry/2020/06/07/132834</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
