instruction
stringlengths
0
10.5k
โŒ€
input
stringlengths
0
9.24k
โŒ€
output
stringlengths
0
8.56k
Splunk์—์„œ Pivot ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•  ๋•Œ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์„ ์„ ํƒํ•˜๋Š” ์ด์œ ๋Š”?
๋ฐ์ดํ„ฐ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•˜๋ฉด ๋ฐ์ดํ„ฐ์˜ ๊ตฌ์กฐ๋ฅผ ์ •์˜ํ•˜์—ฌ ๋ณด๋‹ค ์‰ฝ๊ฒŒ ๋ฐ์ดํ„ฐ๋ฅผ ์š”์•ฝํ•˜๊ณ  ๋ถ„์„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Pivot์€ ์ด๋Ÿฌํ•œ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๋ฐ์ดํ„ฐ ๋ถ„์„์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ Pivot์˜ ํ•„๋“œ ์ œํ•œ์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
Pivot์—์„œ ํ•„๋“œ ์ œํ•œ์„ ์„ค์ •ํ•˜๋ ค๋ฉด, Pivot ๋นŒ๋”์—์„œ ํ•„๋“œ๋ฅผ ์„ ํƒํ•œ ํ›„ ํ•„ํ„ฐ ์˜ต์…˜์„ ํ†ตํ•ด ํŠน์ • ๊ฐ’๋งŒ ํฌํ•จํ•˜๋„๋ก ์ œํ•œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ ์ƒ์„ฑํ•˜๋ ค๋ฉด ๊ฒ€์ƒ‰์„ ์ˆ˜ํ–‰ํ•œ ํ›„ 'Save As' ์˜ต์…˜์—์„œ 'Report'๋ฅผ ์„ ํƒํ•˜์—ฌ ๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ์„œ๋กœ ์ €์žฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ณด๊ณ ์„œ๋Š” ๋‚˜์ค‘์— ๋‹ค์‹œ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ์ž๋™ ๋ณด๊ณ ์„œ ์‹คํ–‰์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์ž๋™ ๋ณด๊ณ ์„œ ์‹คํ–‰์„ ์„ค์ •ํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ ์ €์žฅ ์‹œ 'Schedule' ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ์ฃผ๊ธฐ์ ์œผ๋กœ ๋ณด๊ณ ์„œ๊ฐ€ ์‹คํ–‰๋˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์ •๊ธฐ์ ์œผ๋กœ ๋ฐ์ดํ„ฐ๊ฐ€ ๊ฐฑ์‹ ๋ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ ๋Œ€์‹œ๋ณด๋“œ์— ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ๋ฅผ ๋Œ€์‹œ๋ณด๋“œ์— ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ๋ฅผ ์ €์žฅํ•œ ํ›„ 'Add to Dashboard' ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ธฐ์กด ๋Œ€์‹œ๋ณด๋“œ๋‚˜ ์ƒˆ ๋Œ€์‹œ๋ณด๋“œ์— ํŒจ๋„๋กœ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์˜ ์‹œ๊ฐ„ ๋ฒ”์œ„๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ์˜ ์‹œ๊ฐ„ ๋ฒ”์œ„๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ๋ฅผ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•  ๋•Œ Time Range ์˜ต์…˜์„ ์„ค์ •ํ•˜์—ฌ ํŠน์ • ์‹œ๊ฐ„ ๋ฒ”์œ„ ๋™์•ˆ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•˜๋„๋ก ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ PDF๋กœ ๋‚ด๋ณด๋‚ด๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ๋ฅผ PDF๋กœ ๋‚ด๋ณด๋‚ด๋ ค๋ฉด ๋ณด๊ณ ์„œ ๋ณด๊ธฐ ํŽ˜์ด์ง€์—์„œ 'Export' ์˜ต์…˜์„ ์„ ํƒํ•˜๊ณ  PDF ํ˜•์‹์„ ์„ ํƒํ•˜์—ฌ ๋‹ค์šด๋กœ๋“œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ ์‹คํ–‰ ๊ฒฐ๊ณผ๋ฅผ ์ด๋ฉ”์ผ๋กœ ๋ณด๋‚ด๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ์˜ ๊ฒฐ๊ณผ๋ฅผ ์ด๋ฉ”์ผ๋กœ ๋ณด๋‚ด๋ ค๋ฉด 'Schedule' ์„ค์ •์—์„œ ์ด๋ฉ”์ผ ์˜ต์…˜์„ ํ™œ์„ฑํ™”ํ•˜๊ณ  ์ˆ˜์‹ ์ž์˜ ์ด๋ฉ”์ผ ์ฃผ์†Œ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๋ณด๊ณ ์„œ ์‹คํ–‰ ์‹œ ๊ฒฐ๊ณผ๊ฐ€ ์ž๋™์œผ๋กœ ์ด๋ฉ”์ผ๋กœ ์ „์†ก๋˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์— ์ฐจํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ์— ์ฐจํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์‹œ๊ฐํ™”ํ•˜๊ณ ์ž ํ•˜๋Š” ๋ฐฉ์‹์— ๋”ฐ๋ผ 'Visualization' ํƒญ์—์„œ ์ฐจํŠธ ์œ ํ˜•์„ ์„ ํƒํ•˜์—ฌ ๋ณด๊ณ ์„œ๋ฅผ ์‹œ๊ฐ์ ์œผ๋กœ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ ๊ณต์œ ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ๋ฅผ ๊ณต์œ ํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ ์„ค์ •์—์„œ ๊ณต์œ  ์˜ต์…˜์„ ํ™œ์„ฑํ™”ํ•˜๊ณ , ์ ‘๊ทผ ๊ถŒํ•œ์„ ์„ค์ •ํ•˜์—ฌ ํŠน์ • ์‚ฌ์šฉ์ž๋‚˜ ๋ชจ๋“  ์‚ฌ์šฉ์ž์™€ ๋ณด๊ณ ์„œ๋ฅผ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์˜ ๋ฐ์ดํ„ฐ๋ฅผ CSV ํŒŒ์ผ๋กœ ๋‚ด๋ณด๋‚ด๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ ๋ฐ์ดํ„ฐ๋ฅผ CSV ํŒŒ์ผ๋กœ ๋‚ด๋ณด๋‚ด๋ ค๋ฉด ๋ณด๊ณ ์„œ ํŽ˜์ด์ง€์—์„œ 'Export'๋ฅผ ์„ ํƒํ•˜๊ณ  CSV ํ˜•์‹์„ ์ง€์ •ํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค์šด๋กœ๋“œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ์Šค์ผ€์ค„๋œ ๋ณด๊ณ ์„œ์˜ ์•Œ๋ฆผ์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์Šค์ผ€์ค„๋œ ๋ณด๊ณ ์„œ์˜ ์•Œ๋ฆผ์„ ์„ค์ •ํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ์˜ ์Šค์ผ€์ค„ ์„ค์ •์—์„œ ์•Œ๋ฆผ ์กฐ๊ฑด์„ ์ง€์ •ํ•˜์—ฌ ์กฐ๊ฑด์ด ์ถฉ์กฑ๋  ๋•Œ ์ด๋ฉ”์ผ๋กœ ์•Œ๋ฆผ์„ ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ ์ˆ˜์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ๋ฅผ ์ˆ˜์ •ํ•˜๋ ค๋ฉด 'Reports' ์„น์…˜์—์„œ ์ˆ˜์ •ํ•  ๋ณด๊ณ ์„œ๋ฅผ ์„ ํƒํ•˜๊ณ , ๊ฒ€์ƒ‰ ์ฟผ๋ฆฌ๋‚˜ ์‹œ๊ฐํ™” ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜์—ฌ ๋ณด๊ณ ์„œ๋ฅผ ์—…๋ฐ์ดํŠธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์˜ ๊ฒฐ๊ณผ๋ฅผ ์™ธ๋ถ€ ํŒŒ์ผ๋กœ ์ €์žฅํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ ๊ฒฐ๊ณผ๋ฅผ ์™ธ๋ถ€ ํŒŒ์ผ๋กœ ์ €์žฅํ•˜๋ ค๋ฉด Export ์˜ต์…˜์—์„œ CSV, PDF, JSON ๋“ฑ์˜ ํ˜•์‹์„ ์„ ํƒํ•˜์—ฌ ๋กœ์ปฌ์— ๋‹ค์šด๋กœ๋“œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ๋ฅผ ์ƒ์„ฑํ•  ๋•Œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์‹œ๊ฐํ™” ์œ ํ˜•์€ ๋ฌด์—‡์ธ๊ฐ€์š”?
๋ณด๊ณ ์„œ ์ƒ์„ฑ ์‹œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์‹œ๊ฐํ™” ์œ ํ˜•์—๋Š” ๋ง‰๋Œ€ ๊ทธ๋ž˜ํ”„, ์„  ๊ทธ๋ž˜ํ”„, ํŒŒ์ด ์ฐจํŠธ ๋“ฑ์ด ์žˆ์œผ๋ฉฐ, ๊ฐ ์œ ํ˜•์€ ๋ฐ์ดํ„ฐ๋ฅผ ์‹œ๊ฐ์ ์œผ๋กœ ๋ถ„์„ํ•˜๋Š” ๋ฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ ์Šค์ผ€์ค„๋œ ๋ณด๊ณ ์„œ์˜ ์‹คํŒจ ์‹œ ์žฌ์‹œ๋„ ์„ค์ • ๋ฐฉ๋ฒ•์€?
์Šค์ผ€์ค„๋œ ๋ณด๊ณ ์„œ ์‹คํ–‰์ด ์‹คํŒจํ•  ๊ฒฝ์šฐ ์žฌ์‹œ๋„ํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ ์„ค์ •์—์„œ ์žฌ์‹œ๋„ ๊ฐ„๊ฒฉ์„ ์„ค์ •ํ•˜์—ฌ ์‹คํŒจ ์‹œ ์ž๋™์œผ๋กœ ๋‹ค์‹œ ์‹œ๋„ํ•˜๋„๋ก ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์— ํ•„ํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ํŠน์ • ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ์— ํ•„ํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ๊ฒ€์ƒ‰ ์ฟผ๋ฆฌ์— ์กฐ๊ฑด์„ ์ถ”๊ฐ€ํ•˜์—ฌ ํŠน์ • ๋ฐ์ดํ„ฐ๋งŒ ํฌํ•จ๋˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'status=200' ์กฐ๊ฑด์„ ์ถ”๊ฐ€ํ•˜์—ฌ ์„ฑ๊ณตํ•œ ์š”์ฒญ๋งŒ ํ•„ํ„ฐ๋งํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ ์•Œ๋ฆผ์„ Slack์œผ๋กœ ์ „์†กํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ ์•Œ๋ฆผ์„ Slack์œผ๋กœ ์ „์†กํ•˜๋ ค๋ฉด Webhook ์„ค์ •์„ ํ†ตํ•ด Splunk๊ฐ€ ํŠน์ • ์ด๋ฒคํŠธ ๋ฐœ์ƒ ์‹œ Slack์œผ๋กœ ์•Œ๋ฆผ์„ ๋ณด๋‚ด๋„๋ก ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์˜ ์‹œ๊ฐํ™” ํ˜•์‹์„ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ์˜ ์‹œ๊ฐํ™” ํ˜•์‹์„ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด 'Visualization' ํƒญ์—์„œ ๋‹ค๋ฅธ ์ฐจํŠธ ์œ ํ˜•์„ ์„ ํƒํ•˜์—ฌ ๋ฐ์ดํ„ฐ ํ‘œ์‹œ ๋ฐฉ์‹์„ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ์ƒ์„ฑํ•œ ๋ณด๊ณ ์„œ๋ฅผ ๋‹ค๋ฅธ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ฐฐํฌํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?
๋ณด๊ณ ์„œ๋ฅผ ๋ฐฐํฌํ•˜๋ ค๋ฉด ๋ณด๊ณ ์„œ ์„ค์ •์—์„œ ์ ‘๊ทผ ๊ถŒํ•œ์„ '๊ณต์œ '๋กœ ์„ค์ •ํ•˜๊ณ , ํ•„์š”ํ•œ ๊ฒฝ์šฐ ํŠน์ • ์‚ฌ์šฉ์ž ๋˜๋Š” ๊ทธ๋ฃน์—๋งŒ ์ ‘๊ทผ์„ ํ—ˆ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ์Šค์ผ€์ค„๋œ ๋ณด๊ณ ์„œ์˜ ์„ฑ๋Šฅ์„ ๋ชจ๋‹ˆํ„ฐ๋งํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์Šค์ผ€์ค„๋œ ๋ณด๊ณ ์„œ์˜ ์„ฑ๋Šฅ์€ Monitoring Console์—์„œ ๋ชจ๋‹ˆํ„ฐ๋งํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์‹คํ–‰ ์‹œ๊ฐ„, ์‹คํŒจ์œจ ๋“ฑ์˜ ์ •๋ณด๋ฅผ ํ†ตํ•ด ๋ณด๊ณ ์„œ์˜ ์‹คํ–‰ ์ƒํƒœ๋ฅผ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ณด๊ณ ์„œ์˜ ๊ฒฐ๊ณผ๋ฅผ ๋‹ค์‹œ ์‹คํ–‰ํ•˜์ง€ ์•Š๊ณ  ์กฐํšŒํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์ €์žฅ๋œ ๋ณด๊ณ ์„œ์˜ ๊ฒฐ๊ณผ๋ฅผ ๋‹ค์‹œ ์‹คํ–‰ํ•˜์ง€ ์•Š๊ณ  ๋ณด๋ ค๋ฉด 'View Recent' ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ๋งˆ์ง€๋ง‰ ์‹คํ–‰ ๊ฒฐ๊ณผ๋ฅผ ์กฐํšŒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์ฟผ๋ฆฌ๋ฅผ ๋‹ค์‹œ ์‹คํ–‰ํ•  ํ•„์š” ์—†์ด ๊ฒฐ๊ณผ๋ฅผ ๋น ๋ฅด๊ฒŒ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์˜ REST API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ์— ์ ‘๊ทผํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
Splunk์˜ REST API๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด HTTP ์š”์ฒญ์„ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ์กฐํšŒ, ์ถ”๊ฐ€ ๋˜๋Š” ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๊ฒ€์ƒ‰ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋ ค๋ฉด '/services/search/jobs' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ์ „์†กํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์กฐํšŒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ REST API๋กœ ๊ฒ€์ƒ‰ ์ž‘์—…์„ ์‹œ์ž‘ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
REST API๋กœ ๊ฒ€์ƒ‰ ์ž‘์—…์„ ์‹œ์ž‘ํ•˜๋ ค๋ฉด '/services/search/jobs' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์š”์ฒญ ๋ณธ๋ฌธ์— SPL ์ฟผ๋ฆฌ๋ฅผ ํฌํ•จํ•˜์—ฌ ์ž‘์—…์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ํ†ตํ•ด ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์กฐํšŒํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์กฐํšŒํ•˜๋ ค๋ฉด, '/services/search/jobs/{search_id}/results' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด ๊ฒ€์ƒ‰ ์ž‘์—… ID๋ฅผ ํ†ตํ•ด ํŠน์ • ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API์—์„œ ์ธ์ฆ์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
Splunk REST API๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ Basic ์ธ์ฆ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. HTTP ์š”์ฒญ์˜ Authorization ํ—ค๋”์— ์‚ฌ์šฉ์ž ์ด๋ฆ„๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ base64 ์ธ์ฝ”๋”ฉํ•˜์—ฌ ์ถ”๊ฐ€ํ•จ์œผ๋กœ์จ ์ธ์ฆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์ธ๋ฑ์Šค๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์ƒˆ ์ธ๋ฑ์Šค๋ฅผ ์ƒ์„ฑํ•˜๋ ค๋ฉด '/services/data/indexes' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์š”์ฒญ ๋ณธ๋ฌธ์— ์ธ๋ฑ์Šค ์ด๋ฆ„๊ณผ ์†์„ฑ์„ ํฌํ•จํ•˜์—ฌ ์ธ๋ฑ์Šค๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ REST API๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์‚ฌ์šฉ์ž๋ฅผ ๊ด€๋ฆฌํ•˜๋ ค๋ฉด '/services/authentication/users' ์—”๋“œํฌ์ธํŠธ๋ฅผ ํ†ตํ•ด POST, PUT, DELETE ์š”์ฒญ์„ ์ „์†กํ•˜์—ฌ ์‚ฌ์šฉ์ž ์ถ”๊ฐ€, ์ˆ˜์ • ๋ฐ ์‚ญ์ œ๋ฅผ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ํŠน์ • ์ธ๋ฑ์Šค์˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ์ธ๋ฑ์Šค์˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋ ค๋ฉด '/services/data/indexes/{index_name}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด๋ฉด ํ•ด๋‹น ์ธ๋ฑ์Šค์˜ ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/data/ui/views' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์š”์ฒญ ๋ณธ๋ฌธ์— XML ํ˜•์‹์˜ ๋Œ€์‹œ๋ณด๋“œ ๊ตฌ์„ฑ์„ ํฌํ•จํ•˜์—ฌ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ์‚ฌ์šฉํ•ด ๊ฒฝ๊ณ ๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๊ฒฝ๊ณ ๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/saved/searches' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , SPL ์ฟผ๋ฆฌ์™€ ํŠธ๋ฆฌ๊ฑฐ ์กฐ๊ฑด์„ ํฌํ•จํ•˜์—ฌ ์ƒˆ๋กœ์šด ๊ฒฝ๊ณ ๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ REST API๋กœ ํŒŒ์ผ์„ ์—…๋กœ๋“œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŒŒ์ผ ์—…๋กœ๋“œ๋Š” '/servicesNS/{user}/{app}/data/inputs/monitor' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์š”์ฒญ ๋ณธ๋ฌธ์— ํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ ์ง€์ •ํ•˜์—ฌ ์—…๋กœ๋“œ๋ฅผ ์™„๋ฃŒํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ํ†ตํ•ด ํŠน์ • ์ด๋ฒคํŠธ์˜ ๋กœ๊ทธ๋ฅผ ์กฐํšŒํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ์ด๋ฒคํŠธ ๋กœ๊ทธ๋ฅผ ์กฐํšŒํ•˜๋ ค๋ฉด '/services/search/jobs/export' ์—”๋“œํฌ์ธํŠธ๋กœ GET ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์ฟผ๋ฆฌ ํŒŒ๋ผ๋ฏธํ„ฐ์— SPL ์ฟผ๋ฆฌ๋ฅผ ํฌํ•จํ•˜์—ฌ ๊ด€๋ จ ์ด๋ฒคํŠธ ๋กœ๊ทธ๋ฅผ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์ˆ˜์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์ˆ˜์ •ํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/data/ui/views/{dashboard_name}' ์—”๋“œํฌ์ธํŠธ์— PUT ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์ˆ˜์ •๋œ XML ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•˜์—ฌ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์—…๋ฐ์ดํŠธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์‹ค์‹œ๊ฐ„ ๊ฒฝ๊ณ  ์„ค์ •์„ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์‹ค์‹œ๊ฐ„ ๊ฒฝ๊ณ ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/saved/searches/{alert_name}' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ํ•„์š”ํ•œ ๊ฒฝ๊ณ  ์„ค์ •์„ ์ˆ˜์ •ํ•˜์—ฌ ์ ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ํŠน์ • ์ธ๋ฑ์Šค์˜ ๋ชจ๋“  ์ด๋ฒคํŠธ๋ฅผ ์‚ญ์ œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ์ธ๋ฑ์Šค์˜ ๋ชจ๋“  ์ด๋ฒคํŠธ๋ฅผ ์‚ญ์ œํ•˜๋ ค๋ฉด '/services/data/indexes/{index_name}/roll-hot-buckets' ์—”๋“œํฌ์ธํŠธ์— DELETE ์š”์ฒญ์„ ๋ณด๋‚ด ๋ฐ์ดํ„ฐ ์‚ญ์ œ๋ฅผ ์š”์ฒญํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์‚ฌ์šฉ์ž ์—ญํ• ์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์‚ฌ์šฉ์ž ์—ญํ• ์„ ๊ด€๋ฆฌํ•˜๋ ค๋ฉด '/services/authorization/roles' ์—”๋“œํฌ์ธํŠธ๋กœ POST, PUT, DELETE ์š”์ฒญ์„ ์ „์†กํ•˜์—ฌ ์—ญํ• ์„ ์ถ”๊ฐ€, ์ˆ˜์ • ๋ฐ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์•ฑ(App)์„ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์•ฑ์„ ์„ค์น˜ํ•˜๋ ค๋ฉด '/services/apps/local' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์•ฑ ํŒŒ์ผ ๊ฒฝ๋กœ์™€ ์„ค์น˜ ์˜ต์…˜์„ ์ง€์ •ํ•˜์—ฌ Splunk์— ์•ฑ์„ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ REST API๋กœ ๊ฒ€์ƒ‰ ์ž‘์—…์˜ ์ง„ํ–‰ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๊ฒ€์ƒ‰ ์ž‘์—…์˜ ์ง„ํ–‰ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋ ค๋ฉด '/services/search/jobs/{search_id}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ํ˜„์žฌ ๊ฒ€์ƒ‰ ์ž‘์—…์˜ ์ƒํƒœ์™€ ์ฒ˜๋ฆฌ๋œ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๋ณด๊ณ ์„œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ณด๊ณ ์„œ๋ฅผ ์ƒ์„ฑํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/saved/searches' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ๋ณด๊ณ ์„œ ๊ฒ€์ƒ‰ ์ฟผ๋ฆฌ์™€ ์„ค์ •์„ ํฌํ•จํ•˜์—ฌ ๋ณด๊ณ ์„œ๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ํŠน์ • ๊ฒฝ๊ณ ์˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ๊ฒฝ๊ณ ์˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/saved/searches/{alert_name}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด, ํ•ด๋‹น ๊ฒฝ๊ณ ๊ฐ€ ํ™œ์„ฑํ™”๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ํ†ตํ•ด ํŠน์ • ์ด๋ฒคํŠธ์— ์ฃผ์„์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ์ด๋ฒคํŠธ์— ์ฃผ์„์„ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด '/services/annotations' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์ฃผ์„ ๋‚ด์šฉ๊ณผ ์ด๋ฒคํŠธ ID๋ฅผ ํฌํ•จํ•˜์—ฌ ์ฃผ์„์„ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API ํŠœํ† ๋ฆฌ์–ผ์—์„œ ๊ธฐ๋ณธ ์ธ์ฆ ์„ค์ • ๋ฐฉ๋ฒ•์€?
Splunk REST API์—์„œ ๊ธฐ๋ณธ ์ธ์ฆ์„ ์„ค์ •ํ•˜๋ ค๋ฉด, HTTP ์š”์ฒญ์˜ Authorization ํ—ค๋”์— 'Basic'๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉ์ž๋ช…๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ base64๋กœ ์ธ์ฝ”๋”ฉํ•˜์—ฌ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์ƒˆ ์ธ๋ฑ์Šค๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•์€?
์ƒˆ ์ธ๋ฑ์Šค๋ฅผ ๋งŒ๋“ค๋ ค๋ฉด '/services/data/indexes' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์š”์ฒญ ๋ณธ๋ฌธ์— 'name' ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ์ธ๋ฑ์Šค ์ด๋ฆ„์„ ์ง€์ •ํ•˜์—ฌ ์ธ๋ฑ์Šค๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API์—์„œ ๊ฒ€์ƒ‰ ์ž‘์—…์„ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๊ฒ€์ƒ‰ ์ž‘์—…์„ ์‹คํ–‰ํ•˜๋ ค๋ฉด '/services/search/jobs' ์—”๋“œํฌ์ธํŠธ๋กœ POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , 'search' ํŒŒ๋ผ๋ฏธํ„ฐ์— ๊ฒ€์ƒ‰ ์ฟผ๋ฆฌ๋ฅผ ํฌํ•จํ•˜์—ฌ ์š”์ฒญ์„ ์ „์†กํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.
Splunk REST API์—์„œ ์„ธ์…˜ ํ† ํฐ์„ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ๋Š”?
์„ธ์…˜ ํ† ํฐ์„ ์‚ฌ์šฉํ•˜๋ฉด ์ธ์ฆ์„ ์œ„ํ•œ ์ž๊ฒฉ ์ฆ๋ช…์„ ์•ˆ์ „ํ•˜๊ฒŒ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋กœ๊ทธ์ธ ์‹œ ํ† ํฐ์„ ๋ฐ›์•„ ์ดํ›„ ์š”์ฒญ์— ํฌํ•จํ•˜์—ฌ ๋ณด์•ˆ์„ ๊ฐ•ํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์‚ฌ์šฉ์ž ๊ณ„์ •์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์‚ฌ์šฉ์ž ๊ณ„์ • ๊ด€๋ฆฌ๋Š” '/services/authentication/users' ์—”๋“œํฌ์ธํŠธ๋กœ POST, PUT, DELETE ์š”์ฒญ์„ ๋ณด๋‚ด ์ƒˆ ์‚ฌ์šฉ์ž ์ƒ์„ฑ, ์ •๋ณด ์ˆ˜์ •, ์‚ญ์ œ ๋“ฑ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ํ†ตํ•ด ํŠน์ • ์ธ๋ฑ์Šค์˜ ์†์„ฑ์„ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/services/data/indexes/{index_name}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด๋ฉด ํŠน์ • ์ธ๋ฑ์Šค์˜ ์„ค์ • ์ •๋ณด์™€ ์ƒํƒœ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋Œ€์‹œ๋ณด๋“œ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/data/ui/views/{dashboard_name}' ์—”๋“œํฌ์ธํŠธ๋กœ PUT ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์—…๋ฐ์ดํŠธํ•  XML ์ฝ˜ํ…์ธ ๋ฅผ ํฌํ•จํ•˜์—ฌ ์š”์ฒญ์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๊ฒฝ๊ณ ๋ฅผ ์‚ญ์ œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/servicesNS/{user}/{app}/saved/searches/{alert_name}' ์—”๋“œํฌ์ธํŠธ์— DELETE ์š”์ฒญ์„ ๋ณด๋‚ด๋ฉด ์ง€์ •๋œ ๊ฒฝ๊ณ ๋ฅผ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํŠน์ • ์ด๋ฒคํŠธ์˜ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ JSON์œผ๋กœ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ์ด๋ฒคํŠธ์˜ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ JSON ํ˜•์‹์œผ๋กœ ๊ฐ€์ ธ์˜ค๋ ค๋ฉด '/services/search/jobs/{search_id}/results' ์—”๋“œํฌ์ธํŠธ๋กœ GET ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , 'output_mode=json' ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๊ธฐ์กด ์ธ๋ฑ์Šค๋ฅผ ์‚ญ์ œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/services/data/indexes/{index_name}' ์—”๋“œํฌ์ธํŠธ์— DELETE ์š”์ฒญ์„ ๋ณด๋‚ด ํŠน์ • ์ธ๋ฑ์Šค๋ฅผ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API์—์„œ ํŠน์ • ๊ฒฝ๊ณ ์˜ ์ƒํƒœ๋ฅผ ์กฐํšŒํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/servicesNS/{user}/{app}/saved/searches/{alert_name}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด, ํ•ด๋‹น ๊ฒฝ๊ณ ์˜ ํ˜„์žฌ ์ƒํƒœ์™€ ์„ค์ •์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์•ฑ ์„ค์น˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์•ฑ ์„ค์น˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋ ค๋ฉด '/services/apps/local/{app_name}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ํ•ด๋‹น ์•ฑ์˜ ์„ค์น˜ ์ƒํƒœ์™€ ์„ค์ • ์ •๋ณด๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์‹ค์‹œ๊ฐ„ ๊ฒ€์ƒ‰์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์‹ค์‹œ๊ฐ„ ๊ฒ€์ƒ‰์„ ์„ค์ •ํ•˜๋ ค๋ฉด '/services/search/jobs' ์—”๋“œํฌ์ธํŠธ์— 'search' ํŒŒ๋ผ๋ฏธํ„ฐ์— ์‹ค์‹œ๊ฐ„ ์ฟผ๋ฆฌ๋ฅผ ํฌํ•จํ•˜์—ฌ POST ์š”์ฒญ์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'search=rt index=*'์™€ ๊ฐ™์ด ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์‚ฌ์šฉ์ž ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
์‚ฌ์šฉ์ž ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋ ค๋ฉด '/services/authentication/users/{username}' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , 'password' ํŒŒ๋ผ๋ฏธํ„ฐ์— ์ƒˆ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API๋กœ ๋Œ€์‹œ๋ณด๋“œ ํŒจ๋„์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋Œ€์‹œ๋ณด๋“œ์— ํŒจ๋„์„ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด '/servicesNS/{user}/{app}/data/ui/panels' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ์ƒˆ ํŒจ๋„์˜ XML ๊ตฌ์„ฑ์„ ํฌํ•จํ•˜์—ฌ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค.
Splunk REST API๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ ์ž…๋ ฅ์„ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
๋ฐ์ดํ„ฐ ์ž…๋ ฅ์„ ์ƒ์„ฑํ•˜๋ ค๋ฉด '/services/data/inputs' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ํŒŒ์ผ ๊ฒฝ๋กœ๋‚˜ ์Šคํฌ๋ฆฝํŠธ ๊ฒฝ๋กœ ๋“ฑ์˜ ์ž…๋ ฅ ์†Œ์Šค๋ฅผ ์ง€์ •ํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API์—์„œ ๊ฒ€์ƒ‰ ์ž‘์—…์˜ ์ง„ํ–‰ ์ƒํƒœ๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/services/search/jobs/{search_id}' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด ๊ฒ€์ƒ‰ ์ž‘์—…์˜ ์ง„ํ–‰ ์ƒํƒœ์™€ ์ฒ˜๋ฆฌ๋œ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์•ฑ์„ ์ œ๊ฑฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/services/apps/local/{app_name}' ์—”๋“œํฌ์ธํŠธ์— DELETE ์š”์ฒญ์„ ๋ณด๋‚ด ํŠน์ • ์•ฑ์„ Splunk์—์„œ ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ํ•„ํ„ฐ๋ง๋œ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•์€?
ํ•„ํ„ฐ๋ง๋œ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๊ฐ€์ ธ์˜ค๋ ค๋ฉด '/services/search/jobs/{search_id}/results' ์—”๋“œํฌ์ธํŠธ์— GET ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , ํ•„์š”ํ•œ ํ•„๋“œ์™€ ์กฐ๊ฑด์„ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ์ถ”๊ฐ€ํ•˜์—ฌ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ํ•„ํ„ฐ๋งํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk REST API๋กœ ์„ค์ •๋œ ๊ฒฝ๊ณ ๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
'/servicesNS/{user}/{app}/saved/searches/{alert_name}' ์—”๋“œํฌ์ธํŠธ์— POST ์š”์ฒญ์„ ๋ณด๋‚ด๊ณ , 'disabled=1' ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ํฌํ•จํ•˜์—ฌ ๊ฒฝ๊ณ ๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ 'eval' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•„๋“œ ๊ฐ’์„ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
eval ๋ช…๋ น์–ด๋Š” ์ฃผ์–ด์ง„ ํ‘œํ˜„์‹์„ ํ‰๊ฐ€ํ•˜์—ฌ ์ƒˆ ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'eval total_price = price * quantity'๋Š” price์™€ quantity ํ•„๋“œ ๊ฐ’์„ ๊ณฑํ•˜์—ฌ total_price ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=sales | eval total_price = price * quantity | table product, total_price ``` ์œ„ ์ฟผ๋ฆฌ๋Š” 'product'์™€ 'total_price' ํ•„๋“œ๋ฅผ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์˜ 'stats' ๋ช…๋ น์–ด๋กœ ๊ทธ๋ฃน๋ณ„ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
stats ๋ช…๋ น์–ด๋Š” ์ฃผ์–ด์ง„ ํ•„๋“œ์˜ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'stats count by status'๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด status ํ•„๋“œ๋ณ„๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ๊ณ„์‚ฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | stats count by status | table status, count ``` ์ด ์ฟผ๋ฆฌ๋Š” ๊ฐ ์ƒํƒœ ์ฝ”๋“œ์˜ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ํ…Œ์ด๋ธ”๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'timechart' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‹œ๊ฐ„๋Œ€๋ณ„ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
timechart ๋ช…๋ น์–ด๋Š” ์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ง‘๊ณ„ํ•˜์—ฌ ์‹œ๊ฐํ™”ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'timechart span=1h count'๋Š” 1์‹œ๊ฐ„ ๋‹จ์œ„๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=security_logs | timechart span=1h count ``` ์œ„ ์ฟผ๋ฆฌ๋Š” 1์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ์ฐจํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'rename' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•„๋“œ ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
rename ๋ช…๋ น์–ด๋Š” ํ•„๋“œ ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•  ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'rename clientip as IP_address'๋Š” clientip ํ•„๋“œ๋ฅผ IP_address๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=access_logs | rename clientip as IP_address | table IP_address, status ``` ์ด ์ฟผ๋ฆฌ๋Š” IP ์ฃผ์†Œ์™€ ์ƒํƒœ ํ•„๋“œ๋กœ ์ด๋ฃจ์–ด์ง„ ํ…Œ์ด๋ธ”์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'table' ๋ช…๋ น์–ด๋กœ ํŠน์ • ํ•„๋“œ๋งŒ ํ‘œ์‹œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
table ๋ช…๋ น์–ด๋Š” ์›ํ•˜๋Š” ํ•„๋“œ๋งŒ ์„ ํƒํ•˜์—ฌ ํ…Œ์ด๋ธ” ํ˜•ํƒœ๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'table user, action'์€ user์™€ action ํ•„๋“œ๋งŒ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=user_activity | table user, action, timestamp ``` ์ด ์ฟผ๋ฆฌ๋Š” user, action, timestamp ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'where' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์กฐ๊ฑด์— ๋งž๋Š” ์ด๋ฒคํŠธ๋งŒ ํ•„ํ„ฐ๋งํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
where ๋ช…๋ น์–ด๋Š” ์กฐ๊ฑด์— ๋งž๋Š” ์ด๋ฒคํŠธ๋ฅผ ํ•„ํ„ฐ๋งํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'where status=200'์€ ์ƒํƒœ๊ฐ€ 200์ธ ์ด๋ฒคํŠธ๋งŒ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | where status=200 | table url, status ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ƒํƒœ๊ฐ€ 200์ธ ์ด๋ฒคํŠธ์˜ URL๊ณผ ์ƒํƒœ๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'rex' ๋ช…๋ น์–ด๋กœ ์ •๊ทœ ํ‘œํ˜„์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•„๋“œ๋ฅผ ์ถ”์ถœํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
rex ๋ช…๋ น์–ด๋Š” ์ •๊ทœ ํ‘œํ˜„์‹์„ ํ†ตํ•ด ํŠน์ • ํŒจํ„ด์— ๋งž๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ํ•„๋“œ๋กœ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'rex field=_raw "(?<error_code>\d{3})"'๋Š” _raw ํ•„๋“œ์—์„œ 3์ž๋ฆฌ ์ˆซ์ž๋ฅผ error_code๋กœ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=error_logs | rex field=_raw "(?<error_code>\d{3})" | table error_code, message ``` ์ด ์ฟผ๋ฆฌ๋Š” error_code์™€ message ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'fillnull' ๋ช…๋ น์–ด๋กœ NULL ๊ฐ’์„ ๋Œ€์ฒดํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
fillnull ๋ช…๋ น์–ด๋Š” NULL ๊ฐ’์„ ์ง€์ •๋œ ๊ฐ’์œผ๋กœ ๋Œ€์ฒดํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'fillnull value="N/A"'๋Š” NULL ๊ฐ’์„ 'N/A'๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=inventory | fillnull value="Out of Stock" | table product, status ``` ์ด ์ฟผ๋ฆฌ๋Š” NULL ๊ฐ’์„ 'Out of Stock'์œผ๋กœ ๋Œ€์ฒดํ•˜์—ฌ product์™€ status๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'dedup' ๋ช…๋ น์–ด๋กœ ์ค‘๋ณต๋œ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
dedup ๋ช…๋ น์–ด๋Š” ์ง€์ •๋œ ํ•„๋“œ์˜ ์ค‘๋ณต๋œ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'dedup user'๋Š” user ํ•„๋“œ์˜ ์ค‘๋ณต ๊ฐ’์„ ๊ฐ€์ง„ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=login_logs | dedup user | table user, login_time ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ค‘๋ณต๋œ ์‚ฌ์šฉ์ž ์—†์ด ๊ฐ ์‚ฌ์šฉ์ž์˜ ๋งˆ์ง€๋ง‰ ๋กœ๊ทธ์ธ ์‹œ๊ฐ„์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'stats' ๋ช…๋ น์–ด์™€ 'eval'์„ ๊ฒฐํ•ฉํ•˜์—ฌ ๊ณ„์‚ฐ ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
stats์™€ eval์„ ๊ฒฐํ•ฉํ•˜๋ฉด ๊ณ„์‚ฐ๋œ ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ†ต๊ณ„๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'stats count AS total | eval percentage = (total/100) * 100'๋Š” total ๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ ๋น„์œจ์„ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=transaction_logs | stats count AS total | eval percentage = (total/100) * 100 | table total, percentage ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ด ์ˆ˜์™€ ๋น„์œจ์„ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'eval' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ƒˆ๋กœ์šด ํ•„๋“œ๋ฅผ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
eval ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋‹ค์–‘ํ•œ ํ‘œํ˜„์‹์„ ํ‰๊ฐ€ํ•˜์—ฌ ์ƒˆ ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'eval total_price = price * quantity'๋Š” price์™€ quantity ํ•„๋“œ ๊ฐ’์„ ๊ณฑํ•˜์—ฌ total_price ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=sales | eval total_price = price * quantity | table product, total_price ``` ์ด ์ฟผ๋ฆฌ๋Š” 'product'์™€ 'total_price' ํ•„๋“œ๋ฅผ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์˜ 'stats' ๋ช…๋ น์–ด๋กœ ๊ทธ๋ฃน๋ณ„ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
stats ๋ช…๋ น์–ด๋Š” ์ฃผ์–ด์ง„ ํ•„๋“œ์˜ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'stats count by status'๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด status ํ•„๋“œ๋ณ„๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ๊ณ„์‚ฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | stats count by status | table status, count ``` ์ด ์ฟผ๋ฆฌ๋Š” ๊ฐ ์ƒํƒœ ์ฝ”๋“œ์˜ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ํ…Œ์ด๋ธ”๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'timechart' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‹œ๊ฐ„๋Œ€๋ณ„ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
timechart ๋ช…๋ น์–ด๋Š” ์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ง‘๊ณ„ํ•˜์—ฌ ์‹œ๊ฐํ™”ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'timechart span=1h count'๋Š” 1์‹œ๊ฐ„ ๋‹จ์œ„๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=security_logs | timechart span=1h count ``` ์œ„ ์ฟผ๋ฆฌ๋Š” 1์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ์ฐจํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'table' ๋ช…๋ น์–ด๋กœ ํŠน์ • ํ•„๋“œ๋งŒ ํ‘œ์‹œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
table ๋ช…๋ น์–ด๋Š” ์›ํ•˜๋Š” ํ•„๋“œ๋งŒ ์„ ํƒํ•˜์—ฌ ํ…Œ์ด๋ธ” ํ˜•ํƒœ๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'table user, action'์€ user์™€ action ํ•„๋“œ๋งŒ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=user_activity | table user, action, timestamp ``` ์ด ์ฟผ๋ฆฌ๋Š” user, action, timestamp ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'fillnull' ๋ช…๋ น์–ด๋กœ NULL ๊ฐ’์„ ๋Œ€์ฒดํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
fillnull ๋ช…๋ น์–ด๋Š” NULL ๊ฐ’์„ ์ง€์ •๋œ ๊ฐ’์œผ๋กœ ๋Œ€์ฒดํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'fillnull value="N/A"'๋Š” NULL ๊ฐ’์„ 'N/A'๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=inventory | fillnull value="Out of Stock" | table product, status ``` ์ด ์ฟผ๋ฆฌ๋Š” NULL ๊ฐ’์„ 'Out of Stock'์œผ๋กœ ๋Œ€์ฒดํ•˜์—ฌ product์™€ status๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'rex' ๋ช…๋ น์–ด๋กœ ์ •๊ทœ ํ‘œํ˜„์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•„๋“œ๋ฅผ ์ถ”์ถœํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
rex ๋ช…๋ น์–ด๋Š” ์ •๊ทœ ํ‘œํ˜„์‹์„ ํ†ตํ•ด ํŠน์ • ํŒจํ„ด์— ๋งž๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ํ•„๋“œ๋กœ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'rex field=_raw "(?<error_code>\d{3})"'๋Š” _raw ํ•„๋“œ์—์„œ 3์ž๋ฆฌ ์ˆซ์ž๋ฅผ error_code๋กœ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=error_logs | rex field=_raw "(?<error_code>\d{3})" | table error_code, message ``` ์ด ์ฟผ๋ฆฌ๋Š” error_code์™€ message ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'dedup' ๋ช…๋ น์–ด๋กœ ์ค‘๋ณต๋œ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
dedup ๋ช…๋ น์–ด๋Š” ์ง€์ •๋œ ํ•„๋“œ์˜ ์ค‘๋ณต๋œ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'dedup user'๋Š” user ํ•„๋“œ์˜ ์ค‘๋ณต ๊ฐ’์„ ๊ฐ€์ง„ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=login_logs | dedup user | table user, login_time ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ค‘๋ณต๋œ ์‚ฌ์šฉ์ž ์—†์ด ๊ฐ ์‚ฌ์šฉ์ž์˜ ๋งˆ์ง€๋ง‰ ๋กœ๊ทธ์ธ ์‹œ๊ฐ„์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'where' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํŠน์ • ์กฐ๊ฑด์˜ ์ด๋ฒคํŠธ๋งŒ ํ•„ํ„ฐ๋งํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
where ๋ช…๋ น์–ด๋Š” ํŠน์ • ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ์ด๋ฒคํŠธ๋งŒ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'where status=404'๋Š” ์ƒํƒœ ์ฝ”๋“œ๊ฐ€ 404์ธ ์ด๋ฒคํŠธ๋งŒ ํ•„ํ„ฐ๋งํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | where status=404 | table url, status ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ƒํƒœ ์ฝ”๋“œ๊ฐ€ 404์ธ ์ด๋ฒคํŠธ๋งŒ ํ…Œ์ด๋ธ”๋กœ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'top' ๋ช…๋ น์–ด๋กœ ๊ฐ€์žฅ ๋นˆ๋ฒˆํ•˜๊ฒŒ ๋ฐœ์ƒํ•˜๋Š” ๊ฐ’์„ ์ฐพ๋Š” ๋ฐฉ๋ฒ•์€?
top ๋ช…๋ น์–ด๋Š” ์ฃผ์–ด์ง„ ํ•„๋“œ์—์„œ ๊ฐ€์žฅ ๋นˆ๋ฒˆํ•˜๊ฒŒ ๋ฐœ์ƒํ•˜๋Š” ๊ฐ’์„ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'top host'๋Š” ๊ฐ€์žฅ ๋งŽ์ด ๋ฐœ์ƒํ•œ ํ˜ธ์ŠคํŠธ๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | top host ``` ์ด ์ฟผ๋ฆฌ๋Š” ๋ฐœ์ƒ ๋นˆ๋„๊ฐ€ ๋†’์€ ํ˜ธ์ŠคํŠธ๋ฅผ ์ˆœ์œ„๋ณ„๋กœ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'sort' ๋ช…๋ น์–ด๋กœ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์ •๋ ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
sort ๋ช…๋ น์–ด๋Š” ํ•„๋“œ ๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์ •๋ ฌํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'sort -count'๋Š” count ํ•„๋“œ๋ฅผ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=product_sales | stats count by product | sort -count ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ œํ’ˆ๋ณ„ ํŒ๋งค ์ˆ˜๋Ÿ‰์„ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•˜์—ฌ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'eventstats' ๋ช…๋ น์–ด๋กœ ๊ฐ ์ด๋ฒคํŠธ์— ํ†ต๊ณ„ ๊ฐ’์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
eventstats ๋ช…๋ น์–ด๋Š” ๊ฐ ์ด๋ฒคํŠธ์— ํ†ต๊ณ„ ๊ฐ’์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์ „์ฒด ํ‰๊ท ์„ ๊ณ„์‚ฐํ•˜๊ณ  ๊ฐ ์ด๋ฒคํŠธ์— ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=activity_logs | eventstats avg(duration) as avg_duration ``` ์ด ์ฟผ๋ฆฌ๋Š” ๊ฐ ์ด๋ฒคํŠธ์— ์ „์ฒด ํ‰๊ท  duration ๊ฐ’์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'chart' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์นดํ…Œ๊ณ ๋ฆฌ๋ณ„ ๋ฐ์ดํ„ฐ๋ฅผ ์‹œ๊ฐํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
chart ๋ช…๋ น์–ด๋Š” ์นดํ…Œ๊ณ ๋ฆฌ๋ณ„ ๋ฐ์ดํ„ฐ ์‹œ๊ฐํ™”๋ฅผ ์œ„ํ•œ ์ฐจํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'chart count by category'๋Š” ๊ฐ ์นดํ…Œ๊ณ ๋ฆฌ๋ณ„ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์‹œ๊ฐํ™”ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=retail_data | chart count by product_category ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ œํ’ˆ ์นดํ…Œ๊ณ ๋ฆฌ๋ณ„ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ฐจํŠธ๋กœ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'bin' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ๊ตฌ๊ฐ„์œผ๋กœ ๋‚˜๋ˆ„๋Š” ๋ฐฉ๋ฒ•์€?
bin ๋ช…๋ น์–ด๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ๊ตฌ๊ฐ„์œผ๋กœ ๋‚˜๋ˆ„์–ด ์ง‘๊ณ„ํ•  ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'bin span=5m _time'์€ 5๋ถ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์‹œ๊ฐ„์„ ๊ตฌ๊ฐ„ํ™”ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=network_logs | bin span=10m _time | stats count by _time ``` ์ด ์ฟผ๋ฆฌ๋Š” 10๋ถ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•˜์—ฌ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'rename' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•„๋“œ ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
rename ๋ช…๋ น์–ด๋Š” ํ•„๋“œ ์ด๋ฆ„์„ ๋‹ค๋ฅธ ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•  ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'rename clientip as IP_address'๋Š” clientip ํ•„๋“œ๋ฅผ IP_address๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=access_logs | rename clientip as IP_address | table IP_address, status ``` ์ด ์ฟผ๋ฆฌ๋Š” IP ์ฃผ์†Œ์™€ ์ƒํƒœ ํ•„๋“œ๋กœ ์ด๋ฃจ์–ด์ง„ ํ…Œ์ด๋ธ”์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'append' ๋ช…๋ น์–ด๋กœ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
append ๋ช…๋ น์–ด๋Š” ํ˜„์žฌ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์— ๋‹ค๋ฅธ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'search1 | append [search2]'๋Š” search1์˜ ๊ฒฐ๊ณผ์— search2์˜ ๊ฒฐ๊ณผ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=main search term1 | append [search index=other term2] ``` ์ด ์ฟผ๋ฆฌ๋Š” ๋‘ ๊ฒ€์ƒ‰์˜ ๊ฒฐ๊ณผ๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'multikv' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์ค‘ ํ‚ค-๊ฐ’ ํŽ˜์–ด๋ฅผ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
multikv ๋ช…๋ น์–ด๋Š” ๋‹ค์ค‘ ํ‚ค-๊ฐ’ ์Œ์„ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ๋ณ€ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'multikv'๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์—ฌ๋Ÿฌ ์ค„์˜ ๋ฐ์ดํ„ฐ๋ฅผ ํ…Œ์ด๋ธ” ํ˜•ํƒœ๋กœ ์ •๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=config_logs | multikv fields field1, field2 | table field1, field2 ``` ์ด ์ฟผ๋ฆฌ๋Š” field1๊ณผ field2๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'stats' ๋ช…๋ น์–ด์™€ 'eval'์„ ๊ฒฐํ•ฉํ•˜์—ฌ ๊ณ„์‚ฐ ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
stats์™€ eval์„ ๊ฒฐํ•ฉํ•˜๋ฉด ๊ณ„์‚ฐ๋œ ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ†ต๊ณ„๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'stats count AS total | eval percentage = (total/100) * 100'๋Š” total ๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ ๋น„์œจ์„ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=transaction_logs | stats count AS total | eval percentage = (total/100) * 100 | table total, percentage ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ด ์ˆ˜์™€ ๋น„์œจ์„ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'lookup' ๋ช…๋ น์–ด๋กœ ์™ธ๋ถ€ ๋ฐ์ดํ„ฐ๋ฅผ ์ฐธ์กฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
lookup ๋ช…๋ น์–ด๋Š” ์™ธ๋ถ€ ๋ฐ์ดํ„ฐ๋ฅผ ์ฐธ์กฐํ•˜์—ฌ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์— ์ถ”๊ฐ€ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'lookup geo_lookup clientip AS IP'๋Š” IP ์ฃผ์†Œ์— ๋Œ€ํ•œ ์œ„์น˜ ์ •๋ณด๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=access_logs | lookup geo_lookup clientip AS IP | table IP, location ``` ์ด ์ฟผ๋ฆฌ๋Š” IP ์ฃผ์†Œ์™€ ํ•ด๋‹น ์œ„์น˜ ์ •๋ณด๋ฅผ ํ…Œ์ด๋ธ”๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ ํŠน์ • ์‹œ๊ฐ„ ๋ฒ”์œ„๋ฅผ ์„ค์ •ํ•˜์—ฌ ๊ฒ€์ƒ‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
ํŠน์ • ์‹œ๊ฐ„ ๋ฒ”์œ„๋ฅผ ์„ค์ •ํ•˜์—ฌ ๊ฒ€์ƒ‰ํ•˜๋ ค๋ฉด 'earliest'์™€ 'latest'๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‹œ์ž‘ ์‹œ๊ฐ„๊ณผ ์ข…๋ฃŒ ์‹œ๊ฐ„์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=main earliest=-24h latest=now ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ง€๋‚œ 24์‹œ๊ฐ„ ๋™์•ˆ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฒ€์ƒ‰ํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'fields' ๋ช…๋ น์–ด๋กœ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์— ํฌํ•จํ•  ํ•„๋“œ๋ฅผ ์ง€์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
fields ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์— ํ‘œ์‹œํ•  ํ•„๋“œ๋ฅผ ์ œํ•œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'fields host, status'๋Š” host์™€ status ํ•„๋“œ๋งŒ ๊ฒฐ๊ณผ์— ํฌํ•จ์‹œํ‚ต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | fields host, status ``` ์ด ์ฟผ๋ฆฌ๋Š” host์™€ status ํ•„๋“œ๋งŒ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
sort ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'sort -count'๋Š” count ํ•„๋“œ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=error_logs | stats count by error_code | sort -count ``` ์ด ์ฟผ๋ฆฌ๋Š” ์—๋Ÿฌ ์ฝ”๋“œ๋ณ„ ๋ฐœ์ƒ ์ˆ˜๋ฅผ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌํ•˜์—ฌ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'table' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•„๋“œ๋ณ„๋กœ ๊ฒฐ๊ณผ๋ฅผ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ํ‘œ์‹œํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
table ๋ช…๋ น์–ด๋Š” ์„ ํƒํ•œ ํ•„๋“œ๋“ค๋งŒ์„ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ํ‘œ์‹œํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'table user, action'์€ user์™€ action ํ•„๋“œ๋งŒ ๊ฒฐ๊ณผ์— ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=activity_logs | table user, action, timestamp ``` ์ด ์ฟผ๋ฆฌ๋Š” user, action, timestamp ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'dedup' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ค‘๋ณต๋œ ํ•„๋“œ๋ฅผ ์ œ๊ฑฐํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
dedup ๋ช…๋ น์–ด๋Š” ์ง€์ •ํ•œ ํ•„๋“œ์˜ ์ค‘๋ณต ๊ฐ’์„ ๊ฐ€์ง„ ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'dedup user'๋Š” user ํ•„๋“œ์—์„œ ์ค‘๋ณต๋˜๋Š” ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=login_logs | dedup user | table user, login_time ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ค‘๋ณต ์—†์ด ๊ฐ ์‚ฌ์šฉ์ž์˜ ๋กœ๊ทธ์ธ ์‹œ๊ฐ„์„ ํ…Œ์ด๋ธ” ํ˜•์‹์œผ๋กœ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'transaction' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ด€๋ จ ์ด๋ฒคํŠธ๋ฅผ ๊ทธ๋ฃนํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
transaction ๋ช…๋ น์–ด๋Š” ํŠน์ • ํ•„๋“œ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ๊ด€๋ จ ์ด๋ฒคํŠธ๋ฅผ ๊ทธ๋ฃนํ™”ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'transaction session_id'๋Š” session_id๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์ด๋ฒคํŠธ๋ฅผ ํ•˜๋‚˜์˜ ํŠธ๋žœ์žญ์…˜์œผ๋กœ ๋ฌถ์Šต๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=session_logs | transaction session_id | table session_id, duration ``` ์ด ์ฟผ๋ฆฌ๋Š” ์„ธ์…˜ ID๋ณ„๋กœ ๊ทธ๋ฃนํ™”๋œ ํŠธ๋žœ์žญ์…˜๊ณผ ํ•ด๋‹น ๊ธฐ๊ฐ„์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'eval' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ƒˆ๋กœ์šด ๊ณ„์‚ฐ ํ•„๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
eval ๋ช…๋ น์–ด๋Š” ์ˆ˜์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ์ƒˆ ํ•„๋“œ๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'eval total = price * quantity'๋Š” price์™€ quantity์˜ ๊ณฑ์„ total ํ•„๋“œ๋กœ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=sales | eval total = price * quantity | table product, total ``` ์ด ์ฟผ๋ฆฌ๋Š” product์™€ ๊ณ„์‚ฐ๋œ total ํ•„๋“œ๋ฅผ ํฌํ•จํ•œ ํ…Œ์ด๋ธ”์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ 'top' ๋ช…๋ น์–ด๋กœ ๊ฐ€์žฅ ๋นˆ๋ฒˆํ•˜๊ฒŒ ๋ฐœ์ƒํ•˜๋Š” ํ•„๋“œ ๊ฐ’์„ ์ฐพ๋Š” ๋ฐฉ๋ฒ•์€?
top ๋ช…๋ น์–ด๋Š” ์ฃผ์–ด์ง„ ํ•„๋“œ์—์„œ ๊ฐ€์žฅ ์ž์ฃผ ๋ฐœ์ƒํ•˜๋Š” ๊ฐ’์„ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'top product'๋Š” ๊ฐ€์žฅ ๋งŽ์ด ํŒ๋งค๋œ ์ œํ’ˆ ๋ชฉ๋ก์„ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=sales | top product ``` ์ด ์ฟผ๋ฆฌ๋Š” ๊ฐ€์žฅ ๋งŽ์ด ํŒ๋งค๋œ ์ œํ’ˆ ๋ชฉ๋ก์„ ๋นˆ๋„์ˆœ์œผ๋กœ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'search' ๋ช…๋ น์–ด๋กœ ํŠน์ • ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ์ด๋ฒคํŠธ๋ฅผ ํ•„ํ„ฐ๋งํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
search ๋ช…๋ น์–ด๋Š” ํŠน์ • ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ์ด๋ฒคํŠธ๋งŒ ํ•„ํ„ฐ๋งํ•  ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 'search status=404'๋Š” ์ƒํƒœ ์ฝ”๋“œ๊ฐ€ 404์ธ ์ด๋ฒคํŠธ๋งŒ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=web_logs | search status=404 | table url, status ``` ์ด ์ฟผ๋ฆฌ๋Š” ์ƒํƒœ ์ฝ”๋“œ๊ฐ€ 404์ธ URL๊ณผ ์ƒํƒœ ํ•„๋“œ๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
Splunk์—์„œ 'timechart' ๋ช…๋ น์–ด๋กœ ์‹œ๊ฐ„์— ๋”ฐ๋ฅธ ๋ฐ์ดํ„ฐ ๋ณ€ํ™”๋ฅผ ์‹œ๊ฐํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
timechart ๋ช…๋ น์–ด๋Š” ์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ง‘๊ณ„ํ•˜์—ฌ ์‹œ๊ฐํ™”ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 'timechart span=1h count'๋Š” 1์‹œ๊ฐ„ ๋‹จ์œ„๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•ฉ๋‹ˆ๋‹ค. ์ƒ˜ํ”Œ ์ฝ”๋“œ: ``` index=logs | timechart span=1h count ``` ์ด ์ฟผ๋ฆฌ๋Š” 1์‹œ๊ฐ„ ๋‹จ์œ„๋กœ ์ง‘๊ณ„๋œ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ฐจํŠธ๋กœ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.