<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ohsawa0515</author_name>
  <author_url>https://blog.hatena.ne.jp/ohsawa0515/</author_url>
  <blog_title>本日も乙</blog_title>
  <blog_url>https://blog.jicoman.info/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>Linux</anon>
  </categories>
  <description>セキュリティ要件でサーバ内で実行した全ユーザのコマンド履歴を保存することが求められることがあります。いくつかの方法がありますが、Bash ではコマンド履歴を syslog に出力する機能が提供されており、今回はその方法を採用することにしました。 syslog に保存するには Bash をビルドし直す必要があります。Amazon Linux 1、CentOS、Ubuntu でその方法が見つかったのですが、Amazon Linux 2ではそれらしい情報がなかったので備忘として本記事に残します。 サーバ情報はこんな感じです。 $ uname -r 4.14.173-137.229.amzn2.x86…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.jicoman.info%2F2020%2F05%2Famazon-linux-2-bash-rpm-syslog-history%2F&quot; title=&quot;Amazon Linux 2でsyslogに出力するBashのRPMを作成する - 本日も乙&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>https://contents.blog.jicoman.info/image/ec2.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-03 15:54:25</published>
  <title>Amazon Linux 2でsyslogに出力するBashのRPMを作成する</title>
  <type>rich</type>
  <url>https://blog.jicoman.info/2020/05/amazon-linux-2-bash-rpm-syslog-history/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
