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!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...