[英]Splunkorwarder using ansible
我想監控通用轉發器上的多個日志。 我怎樣才能做到這一點? 此外,當我設置轉發服務器時,我會出錯。 以某種方式啟用引導啟動,我必須手動接受許可證才能完成安裝。 請問有什么建議嗎?
- name: connect forward server to Splunk server
command: "{{ splunkbin }} add forward-server {{ item }} -auth {{ splunkcreds }}"
with_items: "{{ splunkserver }}"
when: splunkserver is defined
notify: restart_splunk
- name: Enable Boot Start
command: "{{ splunkbin }} enable boot-start"
- name: add temporary monitor to create directory
command: "{{ splunkbin }} add monitor /etc/hosts -auth {{ splunkcreds }}"
notify: restart_splunk
使用以下命令在沒有提示的情況下接受許可
- name: Enable Boot Start
command: "{{ splunkbin }} enable boot-start --accept-license"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.