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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...