ausearch
時間によって走ることがあります。
sudo ausearch --start '16:48:07'
または日付:
sudo ausearch --start '05/07/2019'
しかし、両方ではありません。
> sudo ausearch --start '05/07/2019 16:48:07'
Invalid start time (05/07/2019 16:48:07). Hour, Minute, and Second are required.
マニュアルページには、日付、時刻、またはその両方を指定できることが明確に記載されていますが、両方を指定する例はありません。
ausearch
指定された日時でどのように実行できますか?
ベストアンサー1
日付と時刻は別々のパラメーターでなければなりません。
sudo ausearch --start 05/07/2019 '16:48:07'
私が見つけたオンライン例しかし、もっと注意深い読者なら、次のことに気付くでしょう。マニュアルページ:
-ts, --start [start-date] [start-time]
Search for events with time stamps equal to or after the given
start time. The format of start time depends on your locale. If
the date is omitted, today is assumed. If the time is omitted,
midnight is assumed. Use 24 hour clock time rather than AM or PM
to specify time. An example date using the en_US.utf8 locale is
09/03/2009. An example of time is 18:00:00. The date format
accepted is influenced by the LC_TIME environmental variable.
-ts, --start [start-date] [start-time]
明らかに1つではなく2つのオプションのパラメータがあることに注意してください。