[Splunk] 스플렁크 작업 이력 검색하기
2022. 9. 27. 00:40ㆍ빅데이터 분석/Splunk
어떤 계정으로 언제 작업했는지 확인할 수 있다.
index=_internal sourcetype=splunkd_access
( method=POST OR method=DELETE )
( user!=splunk-system-user user!=- )
( uri_path=/servicesNS/* uri_path!="*/user-prefs/* uri_path!="/servicesNS/*/*/*/jobs/*/control" uri_path!-/servicesNS/*/mobile_access* )
| replace "*/ui/views*" with "*/ui_views*", "*/props*" with "**", "*/distributed/peers*" with "*/distributes_peers*", "*/server/serverclasses*" with "*/server_class*" in uri_path
| where mvcount( split( uri_path , "/" ) ) > 6
| eval activity = case( method=="POST" AND like( uri_path , "%/acl" ) , "Permissions Update", method=="POST" AND NOT like( uri_path , "%/acl" ) , "Edited" , method="DELETE" , "Deleted" )
| rex field=uri_path "/servicesNS(/[^\/]+){3}/(?<object_type>[^\/]+)/(?<object_name>[^\/]+)"
| eval obejct_name = urldecode( object_name )
| table _time, user, obejct_name, object_type, activity
반응형
'빅데이터 분석 > Splunk' 카테고리의 다른 글
[Splunk] 파일 모니터링에서 재인덱싱(Re-indexing) 하기 (0) | 2023.04.12 |
---|---|
[Splunk] 데이터 품질 점검하기 (0) | 2022.09.27 |
[Splunk] KV store와 MongoDB (0) | 2022.09.25 |
[Splunk] DB Connect로 데이터 연동하기 (db_inputs.conf) (0) | 2022.09.07 |
[Splunk] DB Connect 3.9.0 에서의 JDBC (0) | 2022.09.05 |