ログ自動検出拡張機能の統合
ログ自動検出拡張機能を使用すると、スタンドアロン マシン エージェントに対する Analytics エージェント拡張機能とともにマシンエージェントを使用して、ログファイルを自動的に検出してモニターすることができます。Unix および Windows オペレーティングシステムをサポートすることを目的としています(Windows のサポートは異なる場合があります)。この拡張機能を使用すると、次のことができます。
- 特定の文字列に一致するプロセスの開いているログファイル、または文字列に一致する特定のディレクトリ内のファイルを識別します。
- 見つかったログファイルのサンプルをテストして、ファイルタイプを判別します。
- Analytics エージェント ジョブ ディレクトリにログファイル用の新しいジョブファイルを作成します。このジョブファイルは、これらのルールに基づいてモニタリングを開始するよう Analytics エージェントに通知します。
- マシンエージェントのシャットダウン時に、生成されたすべてのジョブファイルを自動的に削除します。これにより、アプリケーションプロセスと、関連するログファイルの再検出、および更新されたログファイルのメッセージ形式の一致が可能になります。
このソリューションを使用すると、マシンエージェントを介してリアルタイムの自動ログ収集を実行できます。
SELECT * FROM ログをクエリすると、ログとそのデータが Analytics ログスキーマに表示されます。「Analytics ログデータ」と「SELECT 句」を参照してください。
Before You Begin
- Ensure that you have Installed Machine Agent. See Install the Machine Agent.
- Ensure that you have installed and configured the Analytics Agent Extension to the Standalone Machine Agent. See Enable the Analytics Agent as an Extension to the Standalone Machine Agent.
- Ensure that you have
lsofinstalled.
Add the Extension to the Machine Agent
Use the Log Analytics Data
You can collect Log Analytics data from many types of log files, including instrumented and non-instrumented applications as well as infrastructure. Log Analytics can be used as a standalone component. You can search and analyze log data just as you do transaction data.
For more details about how to use the log data, see Using Analytics Data.