2017-05-05 64 views

回答

0

您可以使用這3個表創建儀表板,然後在電子郵件中發佈該儀表板。不確定儀表板是否可以轉換爲警報。

0

看看這裏的做法:

https://answers.splunk.com/answers/111602/trigger-a-pdf-via-the-command-line.html

您可以創建儀表盤與許多搜索和圖表,用PDF日程安排它。

然後你就可以創建一個運行該信息中心的PDF格式通過電子郵件發送不同的shell腳本:

!/bin/bash 
    curl -k -u admin:password 
https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch -d trigger_actions=1 

之後,你可以設置運行此shell腳本警告:

[whatever_alert] 
action.script = 1 
action.script.filename = whatever_pdf_trigger.sh 
cron_schedule = */10 * * * * 
dispatch.earliest_time = [email protected] 
dispatch.latest_time = now 
displayview = flashtimeline 
enableSched = 1 
counttype = number of events 
relation = greater than 
quantity = 0 
search = index=ops | head 2 
相關問題