Splunk Search

pstack以外の代替手段について

cweiliou_splunk
Splunk Employee
Splunk Employee

フォワーダーの splunkd プロセスが異常に CPU を使用している問題で、Splunk サポートに調査を依頼するため、pstack サンプルを採集しょうとしましたが、どうも pstack は Ubuntu 環境ではうまく動作しないようで、pstack と同等な情報を採集できる他のコマンドはありますでしょうか。

0 Karma
1 Solution

cweiliou_splunk
Splunk Employee
Splunk Employee

eustack は同等な情報を採集できます。
以下の手順で eustack をインストールし、スクリプトを実行する前に を実際の splunkd のプロセス ID に入れ替えて、サンプルを採集してみてください。

$ sudo su splunk
$ sudo apt install -y elfutils
$ mkdir /tmp/eustack/
$ for i in $(seq 1 600); do sudo eu-stack -p <PID> > /tmp/eustack/stack.<PID>.$i.$(date -u +%Y%m%d-%H%M%S-%N); sleep 0.1; done

View solution in original post

cweiliou_splunk
Splunk Employee
Splunk Employee

eustack は同等な情報を採集できます。
以下の手順で eustack をインストールし、スクリプトを実行する前に を実際の splunkd のプロセス ID に入れ替えて、サンプルを採集してみてください。

$ sudo su splunk
$ sudo apt install -y elfutils
$ mkdir /tmp/eustack/
$ for i in $(seq 1 600); do sudo eu-stack -p <PID> > /tmp/eustack/stack.<PID>.$i.$(date -u +%Y%m%d-%H%M%S-%N); sleep 0.1; done
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, ...