Splunk - GPP Splunk


============================================================================================================================================================
============================================================================================================================================================

Collection Team Team - Request Batch 1

============================================================================================================================================================
============================================================================================================================================================

Search Name: PF_LodeRunner_SI_GetDownloadedFileCount

ORIGINAL QUERY:

index=applog_pf "Process the element with index" | stats count as DownloadedFileCount | eval Title="ProcessTheElement" | table Title, DownloadedFileCount
| append [ search index=applog_pf "finish extract data" | stats count as DownloadedFileCount | eval Title="FinishExtractData" | table Title, DownloadedFileCount ]
| append [ search index=applog_pf "finish extract master data" | stats count as DownloadedFileCount | eval Title="FinishExtractMasterData" | table Title, DownloadedFileCount ]
| append [ search index=applog_pf "Save file" | stats count as DownloadedFileCount | eval Title="SaveFile" | table Title, DownloadedFileCount ]

UPDATED QUERY:

index=applog_pf "Process the element with index" | stats count as DownloadedFileCount | eval Title="ProcessTheElement"
| append [ search index=applog_pf "finish extract data" | stats count as DownloadedFileCount | eval Title="FinishExtractData" ]
| append [ search index=applog_pf "finish extract master data" | stats count as DownloadedFileCount | eval Title="FinishExtractMasterData" ]
| append [ search index=applog_pf "Save file" | stats count as DownloadedFileCount | eval Title="SaveFile" ]
| table Title, DownloadedFileCount

UPDATED QUERY FOR SUMMARY INDEXING:

index=applog_pf "Process the element with index" | sistats count as DownloadedFileCount | eval Title="ProcessTheElement"
| append [ search index=applog_pf "finish extract data" | sistats count as DownloadedFileCount | eval Title="FinishExtractData" ]
| append [ search index=applog_pf "finish extract master data" | sistats count as DownloadedFileCount | eval Title="FinishExtractMasterData" ]
| append [ search index=applog_pf "Save file" | sistats count as DownloadedFileCount | eval Title="SaveFile" ]

QUERY AGAINST SUMMARY INDEX:

index=applog_gpp_summary search_name=PF_LodeRunner_SI_GetDownloadedFileCount | stats count as DownloadedFileCount by Title

 

Search Name: PF_LodeRunner_SI_GetVisitWebPageCount

ORIGINAL QUERY:

index=applog_pf "click completed!" | stats count as VisitFileCount | eval Title="ClickCompleted" | table Title, VisitFileCount
| append [ search index=applog_pf "Change Combo box completed!" | stats count as VisitFileCount | eval Title="ChangeComboBoxCompleted" | table Title, VisitFileCount ]
| append [ search index=applog_pf "navigate completed!" | stats count as VisitFileCount | eval Title="NavigateCompleted" | table Title, VisitFileCount ]
| append [ search index=applog_pf "Save file" | stats count as VisitFileCount | eval Title="SaveFile" | table Title, VisitFileCount ]
| append [ search index=applog_pf "Process the element with index" | stats count as VisitFileCount | eval Title="ProcessTheElement" | table Title, VisitFileCount ]

UPDATED QUERY:

index=applog_pf "click completed!" | stats count as VisitFileCount | eval Title="ClickCompleted"
| append [ search index=applog_pf "Change Combo box completed!" | stats count as VisitFileCount | eval Title="ChangeComboBoxCompleted" ]
| append [ search index=applog_pf "navigate completed!" | stats count as VisitFileCount | eval Title="NavigateCompleted" ]
| append [ search index=applog_pf "Save file" | stats count as VisitFileCount | eval Title="SaveFile" ]
| append [ search index=applog_pf "Process the element with index" | stats count as VisitFileCount | eval Title="ProcessTheElement" ]
| table Title, VisitFileCount

UPDATED QUERY FOR SUMMARY INDEXING:

index=applog_pf "click completed!" | sistats count as VisitFileCount | eval Title="ClickCompleted"
| append [ search index=applog_pf "Change Combo box completed!" | sistats count as VisitFileCount | eval Title="ChangeComboBoxCompleted" ]
| append [ search index=applog_pf "navigate completed!" | sistats count as VisitFileCount | eval Title="NavigateCompleted" ]
| append [ search index=applog_pf "Save file" | sistats count as VisitFileCount | eval Title="SaveFile" ]
| append [ search index=applog_pf "Process the element with index" | sistats count as VisitFileCount | eval Title="ProcessTheElement" ]

QUERY AGAINST SUMMARY INDEX:

index=applog_gpp_summary search_name=PF_LodeRunner_SI_GetVisitWebPageCount | stats count as VisitFileCount by Title


============================================================================================================================================================
============================================================================================================================================================

Collection Team Team - Request Batch 2

============================================================================================================================================================
============================================================================================================================================================

Search Name: Downloader_SI_GetSuccessfulDownloadedFileCount

ORIGINAL QUERY:

index=gpp "processname=downloader" "File Downloaded Successfully" | stats count(FileId) as FileCountOfSuccessfulDownload by ProcessName | table ProcessName, FileCountOfSuccessfulDownload
| append [ search index=gpp "processname=downloader" "File Downloaded Successfully" | stats count(FileId) as FileCountOfSuccessfulDownload | table ProcessName, FileCountOfSuccessfulDownload ]

UPDATED QUERY:

index=gpp ProcessName=downloader* "File Downloaded Successfully" | stats count(FileId) as FileCountOfSuccessfulDownload by ProcessName | table ProcessName, FileCountOfSuccessfulDownload | addcoltotals labelfield=ProcessName label=ALL

UPDATED QUERY FOR SUMMARY INDEXING:

index=gpp ProcessName=downloader* "File Downloaded Successfully" | sistats count(FileId) as FileCountOfSuccessfulDownload by ProcessName

QUERY AGAINST SUMMARY INDEX:

index=applog_gpp_summary search_name=Downloader_SI_GetSuccessfulDownloadedFileCount | stats count(FileId) as FileCountOfSuccessfulDownload by ProcessName | table ProcessName, FileCountOfSuccessfulDownload | addcoltotals labelfield=ProcessName label=ALL

 

Search Name: GPP_Downloader_SI_GetFailedDownloadedFileCount

ORIGINAL QUERY:

index=gpp "processname=downloader" "Download file unsuccessfully" | stats count as FileCountOfFailedDownload BY ProcessName | table ProcessName, FileCountOfFailedDownload
| append [ search index=gpp "processname=downloader" "Download file unsuccessfully" | stats count as FileCountOfFailedDownload | table ProcessName, FileCountOfFailedDownload ]

UPDATED QUERY:

index=gpp ProcessName=downloader* "Download file unsuccessfully" | stats count as FileCountOfFailedDownload BY ProcessName | table ProcessName, FileCountOfFailedDownload | addcoltotals labelfield=ProcessName label=ALL

UPDATED QUERY FOR SUMMARY INDEXING:

index=gpp ProcessName=downloader* "Download file unsuccessfully" | sistats count as FileCountOfFailedDownload BY ProcessName

QUERY AGAINST SUMMARY INDEX:

index=applog_gpp_summary search_name=GPP_Downloader_SI_GetFailedDownloadedFileCount | stats count as FileCountOfFailedDownload BY ProcessName | table ProcessName, FileCountOfFailedDownload | addcoltotals labelfield=ProcessName label=ALL

 

Search Name: GPP_Downloader_SW_GetFailedFileSourceTrackingCount

ORIGINAL QUERY:

index=gpp "processname=downloader" "Error occurs when AddFileSourceTracking" | stats count(FileId) as ErrorCountOfFailedAddFileSourceTracking by ProcessName | table ProcessName, ErrorCountOfFailedAddFileSourceTracking
| append [ search index=gpp "processname=downloader" "Error occurs when AddFileSourceTracking" | stats count(FileId) as ErrorCountOfFailedAddFileSourceTracking | table ProcessName, ErrorCountOfFailedAddFileSourceTracking ]

UPDATED QUERY:

index=gpp ProcessName=downloader* "Error occurs when AddFileSourceTracking" | stats count(FileId) as ErrorCountOfFailedAddFileSourceTracking by ProcessName | table ProcessName, ErrorCountOfFailedAddFileSourceTracking | addcoltotals labelfield=ProcessName label=ALL

UPDATED QUERY FOR SUMMARY INDEXING:

index=gpp ProcessName=downloader* "Error occurs when AddFileSourceTracking" | sistats count(FileId) as ErrorCountOfFailedAddFileSourceTracking by ProcessName

QUERY AGAINST SUMMARY INDEX:

index=applog_gpp_summary search_name=GPP_Downloader_SW_GetFailedFileSourceTrackingCount | stats count(FileId) as ErrorCountOfFailedAddFileSourceTracking by ProcessName | table ProcessName, ErrorCountOfFailedAddFileSourceTracking | addcoltotals labelfield=ProcessName label=ALL

 


Search Name: GPP_Downloader_SW_GetFailedMatchedFileNameListCount

ORIGINAL QUERY:

index=gpp "processname=downloader" "Error occurs when GetMatchedFileNameList" | stats count as ErrorCountOfGetMatchedFileFailed by ProcessName | table ProcessName, ErrorCountOfGetMatchedFileFailed
| append [ search index=gpp "processname=downloader" "Error occurs when GetMatchedFileNameList" | stats count as ErrorCountOfGetMatchedFileFailed | table ProcessName, ErrorCountOfGetMatchedFileFailed ]

UPDATED QUERY:

index=gpp ProcessName=downloader* "Error occurs when GetMatchedFileNameList" | stats count as ErrorCountOfGetMatchedFileFailed by ProcessName | table ProcessName, ErrorCountOfGetMatchedFileFailed | addcoltotals labelfield=ProcessName label=ALL

UPDATED QUERY FOR SUMMARY INDEXING:

index=gpp ProcessName=downloader* "Error occurs when GetMatchedFileNameList" | sistats count as ErrorCountOfGetMatchedFileFailed by ProcessName

QUERY AGAINST SUMMARY INDEX:

index=applog_gpp_summary search_name=GPP_Downloader_SW_GetFailedMatchedFileNameListCount | stats count as ErrorCountOfGetMatchedFileFailed by ProcessName | table ProcessName, ErrorCountOfGetMatchedFileFailed | addcoltotals labelfield=ProcessName label=ALL

 

转载于:https://www.cnblogs.com/flysun0311/archive/2012/09/20/2694774.html

在 Kubernetes (K8S) 上安装 Splunk Operator 需要几个步骤,通常涉及以下操作: 1. **添加外部仓库**: - 如果Splunk Operator不在官方仓库中,首先你需要添加Splunk的私有或社区维护的Docker Hub仓库到你的K8S集群。这通常通过更新`kubectl`的镜像仓库配置来完成。 2. **安装CRDs**: - 使用Kubernetes的`customresourcedefinitions` (CRDs)来启用Operator的功能。你可以在Splunk Operator的GitHub仓库找到CRDs的yaml文件,然后使用`kubectl apply - 下载Splunk Operator的Deployment或StatefulSet yaml文件,这通常包含Operator的实例和所需的依赖资源(如ServiceAccount,Role和RoleBinding)。应用它到K8S集群,例如: ``` kubectl apply -f splunk-operator-deployment.yaml ``` 4. **验证安装**: - 使用`kubectl get pods`检查Operator是否成功部署并处于Running状态。同时,确认CRDs也被正确创建了。 5. **配置和服务连接**: - 创建必要的Secret,用于存储Splunk的认证凭据和其他配置信息,例如: ``` kubectl create secret generic splunk-config \ --from-literal=splunk-url=https://your-splunk-url \ --from-literal=token=your-access-token ``` - 根据需要,创建Splunk Custom Resource (CR),比如ClusterRoleBinding来授权Operator访问你的Splunk集群。 6. **初始化**: - 一旦Operator部署好并且配置了连接,可能还需要运行一个初始化操作,让Operator开始管理你的 Splunk 实例。 7. **监控和更新**: - 持续监控Operator的状态和日志,以确保一切正常。定期检查和更新Operator以获得新功能和修复。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值