EventLogSession.ExportLog メソッド

定義

イベントを外部ログ ファイルにエクスポートします。 イベントは、イベント メッセージなしで格納されます。

オーバーロード

ExportLog(String, PathType, String, String)

イベントを外部ログ ファイルにエクスポートします。 イベントは、イベント メッセージなしで格納されます。

ExportLog(String, PathType, String, String, Boolean)

イベントを外部ログ ファイルにエクスポートします。 指定したクエリが一部のログで失敗した場合でも、メソッドによるイベントのエクスポートが続行されることを示すフラグを設定できます。 イベントは、イベント メッセージなしで格納されます。

ExportLog(String, PathType, String, String)

ソース:
EventLogSession.cs
ソース:
EventLogSession.cs
ソース:
EventLogSession.cs

イベントを外部ログ ファイルにエクスポートします。 イベントは、イベント メッセージなしで格納されます。

public:
 void ExportLog(System::String ^ path, System::Diagnostics::Eventing::Reader::PathType pathType, System::String ^ query, System::String ^ targetFilePath);
public void ExportLog (string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath);
member this.ExportLog : string * System.Diagnostics.Eventing.Reader.PathType * string * string -> unit
Public Sub ExportLog (path As String, pathType As PathType, query As String, targetFilePath As String)

パラメーター

path
String

イベントのエクスポート元となるイベント ログの名前、またはイベントのエクスポート元となるイベント ログ ファイルのパス。

pathType
PathType

パスのパラメーターで使用する文字列でイベント ログの名前またはイベント ログ ファイルのパスを指定するかどうかを指定します。

query
String

エクスポートするイベントの選択に使用するクエリ。 クエリから返されるイベントのみがエクスポートされます。

targetFilePath
String

このメソッドを実行した後に、エクスポートされたイベントが保存されるログ ファイル (末尾が .evtx) のパスです。

こちらもご覧ください

適用対象

ExportLog(String, PathType, String, String, Boolean)

ソース:
EventLogSession.cs
ソース:
EventLogSession.cs
ソース:
EventLogSession.cs

イベントを外部ログ ファイルにエクスポートします。 指定したクエリが一部のログで失敗した場合でも、メソッドによるイベントのエクスポートが続行されることを示すフラグを設定できます。 イベントは、イベント メッセージなしで格納されます。

public:
 void ExportLog(System::String ^ path, System::Diagnostics::Eventing::Reader::PathType pathType, System::String ^ query, System::String ^ targetFilePath, bool tolerateQueryErrors);
public void ExportLog (string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath, bool tolerateQueryErrors);
member this.ExportLog : string * System.Diagnostics.Eventing.Reader.PathType * string * string * bool -> unit
Public Sub ExportLog (path As String, pathType As PathType, query As String, targetFilePath As String, tolerateQueryErrors As Boolean)

パラメーター

path
String

イベントのエクスポート元となるイベント ログの名前、またはイベントのエクスポート元となるイベント ログ ファイルのパス。

pathType
PathType

パスのパラメーターで使用する文字列でイベント ログの名前またはイベント ログ ファイルのパスを指定するかどうかを指定します。

query
String

エクスポートするイベントの選択に使用するクエリ。 クエリから返されるイベントのみがエクスポートされます。

targetFilePath
String

このメソッドを実行した後に、エクスポートされたイベントが保存されるログ ファイル (末尾が .evtx) のパスです。

tolerateQueryErrors
Boolean

true は、指定したクエリが一部のログで失敗した場合でも、メソッドによるイベントのエクスポートが続行されることを示します。false は、指定したクエリが失敗した場合、このメソッドによるイベントのエクスポートが続行されないことを示します。

こちらもご覧ください

適用対象