Closed GitEngHar closed 1 year ago
docker run -d -p 18000:8000 -e 'SPLUNK_START_ARGS=--accept-license' -e 'SPLUNK_PASSWORD=mypassword' splunk/splunk:latest
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
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ページにアクセスできていることを見れている
splunkのログ画像
index.htmlを削除してみる
rm /usr/share/nginx/html/index.html
splunkログ画像(エラーが出力されている)
目的
何をするか