Splunk Search

SplunkのDiagファイルを取得する方法を教えて下さい。

Splunk_Shinobi
Splunk Employee
Splunk Employee

Splunkの内部ログやサポートに必要な情報を取得するDiagというコマンドがあるそうですが、
どのように利用するのかおしえてください。

実際のコマンドの利用方法の例を掲示してほしいです。

Tags (3)
0 Karma
1 Solution

melonman
Motivator

サンプルとして、CentOS上で実行した以下の手順を記載致します。

# /opt/splunk/bin/splunk diag
The full set of options was: {'diagname': None, 'uri': None, 'etc_filesize_limit': 10485760, 'debug': None, 'components': set(['pool', 'kvstore', 'log', 'dispatch', 'file_validate', 'searchpeers', 'index_files', 'index_listing', 'conf_replication_summary', 'consensus', 'etc']), 'stdout': None, 'collect': None, 'disable': None, 'log_age': 60, 'all_dumps': None, 'statusfile': None, 'index_files': 'manifests', 'index_listing': 'light', 'enable': None, 'exclude_list': ['*/etc/*/lookups/*.tsidx', '*/etc/auth/*']}
The set of requested components was: ['conf_replication_summary', 'consensus', 'dispatch', 'etc', 'file_validate', 'index_files', 'index_listing', 'kvstore', 'log', 'pool', 'searchpeers']
Selected diag name of: diag-dev2-2016-02-22_11-13-01
Starting splunk diag...
... (省略) ...
Cleaning up...
Splunk diagnosis file created: /opt/splunk/diag-dev2-2016-02-22_11-13-01.tar.gz

Splunkが起動している状態でも停止している状態でも取得可能です。

他のOSや詳細に関しましては以下を参照ください。
http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Generateadiag

View solution in original post

0 Karma

melonman
Motivator

サンプルとして、CentOS上で実行した以下の手順を記載致します。

# /opt/splunk/bin/splunk diag
The full set of options was: {'diagname': None, 'uri': None, 'etc_filesize_limit': 10485760, 'debug': None, 'components': set(['pool', 'kvstore', 'log', 'dispatch', 'file_validate', 'searchpeers', 'index_files', 'index_listing', 'conf_replication_summary', 'consensus', 'etc']), 'stdout': None, 'collect': None, 'disable': None, 'log_age': 60, 'all_dumps': None, 'statusfile': None, 'index_files': 'manifests', 'index_listing': 'light', 'enable': None, 'exclude_list': ['*/etc/*/lookups/*.tsidx', '*/etc/auth/*']}
The set of requested components was: ['conf_replication_summary', 'consensus', 'dispatch', 'etc', 'file_validate', 'index_files', 'index_listing', 'kvstore', 'log', 'pool', 'searchpeers']
Selected diag name of: diag-dev2-2016-02-22_11-13-01
Starting splunk diag...
... (省略) ...
Cleaning up...
Splunk diagnosis file created: /opt/splunk/diag-dev2-2016-02-22_11-13-01.tar.gz

Splunkが起動している状態でも停止している状態でも取得可能です。

他のOSや詳細に関しましては以下を参照ください。
http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Generateadiag

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...