1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Splunkの構築(ADとの連携もやる)

1
Last updated at Posted at 2026-09-06

やること

自宅ラボに構築したActive Directoryを監視するためにSplunkの構築を行っていく。

環境

proxmox上に構築したDebian 13.6

splunkの構築をしていく

公式ページから、.debファイルをダウンロードしたところから始める

【公式ページ】

1️⃣ 専用ユーザの作成
インストール

bash
sudo apt install ./splunk-10.4.3-4174a2deda5d-linux-amd64.deb

2️⃣ 起動

bash
sudo -u splunk /opt/splunk/bin/splunk start

起動時にに以下の設定
splunkの管理者アカウントのIDとPass

Please enter an administrator username: admin
Password must contain at least:
* 8 total printable ASCII character(s).
Please enter a new password:
Please confirm new password:

エラー対処

This appears to be your first time running this version of Splunk. 
Could not open log file "/opt/splunk/var/log/splunk/first_install.log" for writing (13).
  

上記のようなエラーが出た。

原因としては/opt/splunk/varに書き込み権限が無いから起きた。
以下で修正

bash
sudo chown -R splunk:splunk /opt/splunk/var

再度2️⃣を実行した

3️⃣ ログイン
http://<debianのIP>:8000にアクセスして先程設定したアカウントでログインします。
image.png

4️⃣ データ受信の設定
設定>転送と受信
image.png

受信の設定
image.png

ポートの追加から9997を追加
image.png

splunkの構築は完了です。

ADとの連携

DCに以下のソフトをダウンロードします。

Universal Forwarderのセットアップ

1️⃣ ライセンス同意
image.png

2️⃣ 管理者アカウントの作成
任意のアカウントを作成
image.png

3️⃣ デプロイメントサーバーの設定
ここは何も入力せずにnext

4️⃣ ログの送信先の設定
先程構築したsplunkをインストールしたサーバのIPを入力
image.png

5️⃣ インストール
image.png

6️⃣ サービスの確認
image.png

7️⃣ 疎通の確認
image.png

splunk webで確認

image.png

最後に

これにて、ADとsplunkの連携は完了
次回で、splunkの監視をwindows用の設定を入れていく

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?