GitEngHar / GrowTheLatestTechnorogy

0 stars 2 forks source link

Docker Demo2 Splunkのログ転送の作成 #5

Closed GitEngHar closed 1 year ago

GitEngHar commented 1 year ago

目的

何をするか

GitEngHar commented 1 year ago

ログの取得はできた

image

参考サイト

Qiita Official

splunkコンテナの起動

docker run -d -p 18000:8000 -e 'SPLUNK_START_ARGS=--accept-license' -e 'SPLUNK_PASSWORD=mypassword' splunk/splunk:latest

プラグインinstall済みコンテナの実行

docker run -it -d -p 80:80 --log-driver=splunk-logging-plugin --log-opt splunk-token=af615c43-4d80-48d8-9463-3fbcf1049c4f --log-opt splunk-url=https://172.19.0.3:8088 --log-opt splunk-insecureskipverify=true --log-opt splunk-index=docker nginx

GitEngHar commented 1 year ago
GitEngHar commented 1 year ago
PS D:\Seraku\GrowTheLatestTechnorogy> docker logs romantic_shirley

172.17.0.1 - - [01/Mar/2023:12:16:47 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:16:47 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:16:48 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:16:58 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:17:00 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:17:01 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:17:01 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:17:22 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"
172.17.0.1 - - [01/Mar/2023:12:18:45 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"

172.17.0.1 - - [01/Mar/2023:12:18:45 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "-"

正常にnginx提供のwebページにアクセスできていることを見れている

GitEngHar commented 1 year ago