This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
ログ収集
概要
Linux VDA では、ログ収集がデフォルトで有効になっています。
構成
ctxlogd デーモンと setlog ユーティリティは、Linux VDA リリースパッケージに含まれています。デフォルトでは、Linux VDA をインストールして構成すると、ctxlogd デーモンが起動します。
ctxlogd デーモン
トレースされる他のすべてのサービスは、ctxlogd デーモンに依存します。Linux VDA のトレースを維持したくない場合は、ctxlogd デーモンを停止できます。
setlog ユーティリティ
ログ収集は、/opt/Citrix/VDA/bin/ パスにある setlog ユーティリティを使用して構成されます。root ユーザーのみが実行する権限を持っています。GUI を使用するか、コマンドを実行して構成を表示および変更できます。setlog ユーティリティに関するヘルプを表示するには、次のコマンドを実行します。
setlog help
<!--NeedCopy-->
値
デフォルトでは、ログ出力パスは /var/log/xdl/hdx.log に設定され、最大ログサイズは 200 MB に設定されており、ログ出力パスの下に最大 2 つの古いログファイルを保存できます。
現在の setlog の値を表示します。
setlog values
log_path (Log Output Path) = /var/log/xdl/hdx.log
log_size (Max Log Size (MiB)) = 200
log_count (Max Old Log Files) = 2
<!--NeedCopy-->
単一の setlog の値を表示または設定します。
setlog value <name> [<value>]
<!--NeedCopy-->
例:
setlog value log_size 100
<!--NeedCopy-->
レベル
デフォルトでは、ログレベルは warning (大文字と小文字を区別しない) に設定されています。
異なるコンポーネントに設定されているログレベルを表示するには、次のコマンドを実行します。
setlog levels
<!--NeedCopy-->
ログレベル (Disabled、Inherited、Verbose、Information、Warnings、Errors、Fatal Errors を含む) を設定するには、次のコマンドを実行します。
setlog level <class> [<level>]
<!--NeedCopy-->
| ログレベル | コマンドパラメーター (大文字と小文字を区別しない) |
|---|---|
| 無効 | none |
| 継承 | inherit |
| 詳細 | verbose |
| 情報 | info |
| 警告 | warning |
| エラー | error |
| 致命的なエラー | fatal |
<class> 変数は、Linux VDA の 1 つのコンポーネントを指定します。すべてのコンポーネントを対象とするには、all に設定します。例:
setlog level all error
<!--NeedCopy-->
フラグ
デフォルトでは、フラグは次のように設定されています。
setlog flags
DATE = true
TIME = true
NAME = true
PID = true
TID = false
SID = true
UID = false
GID = false
CLASS = false
LEVEL = false
FUNC = true
FILE = false
<!--NeedCopy-->
現在のフラグを表示します。
setlog flags
<!--NeedCopy-->
単一のログフラグを表示または設定します。
setlog flag <flag> [<state>]
<!--NeedCopy-->
デフォルトの復元
すべてのレベル、フラグ、および値をデフォルト設定に戻します。
setlog default
<!--NeedCopy-->
重要:
ctxlogdサービスは、root ユーザーのみが作成できる /var/xdl/.ctxlog ファイルを使用して構成されます。他のユーザーはこのファイルへの書き込み権限を持っていません。root ユーザーが他のユーザーに書き込み権限を与えないことをお勧めします。これに従わない場合、ctxlogdに任意の、または悪意のある構成が適用され、サーバーのパフォーマンス、ひいてはユーザーエクスペリエンスに影響を与える可能性があります。
トラブルシューティング
/var/xdl/.ctxlog ファイルが見つからない場合 (たとえば、誤って削除された場合)、ctxlogd デーモンが失敗し、ctxlogd サービスを再起動できません。
/var/log/messages:
Apr 1 02:28:21 RH72 citrix-ctxlogd[17881]: Failed to open logging configuration file.
Apr 1 02:28:21 RH72 systemd: ctxlogd.service: main process exited, code=exited, status=1/FAILURE
Apr 1 02:28:21 RH72 systemd: Unit ctxlogd.service entered failed state.
Apr 1 02:28:21 RH72 systemd: ctxlogd.service failed.
<!--NeedCopy-->
この問題を解決するには、root ユーザーとして setlog を実行して /var/xdl/.ctxlog ファイルを再作成します。その後、他のサービスが依存する ctxlogd サービスを再起動します。
共有
共有
この記事の概要
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.