Splunk credentials#
คุณสามารถใช้ credentials เหล่านี้เพื่อยืนยันตัวตนกับ node ต่อไปนี้:
Prerequisites#
- Download and install Splunk Enterprise
- Enable token authentication ที่ Settings > Tokens
Free trial Splunk Cloud Platform accounts can't access the REST API
บัญชี Splunk Cloud Platform แบบทดลองใช้งานฟรีจะไม่สามารถใช้ REST API ได้ ต้องมีสิทธิ์ที่เหมาะสม ดูรายละเอียดที่ Access requirements and limitations for the Splunk Cloud Platform REST API
Supported authentication methods#
- API auth token
Related resources#
ดูรายละเอียดเพิ่มเติมได้ที่ Splunk's Enterprise API documentation
Using API auth token#
ในการตั้งค่า credential นี้ คุณจะต้องมี:
- Auth Token: หลังจากเปิดใช้งาน token authentication แล้ว ให้สร้าง auth token ที่ Settings > Tokens ดูวิธีที่ Creating authentication tokens
- Base URL: URL ของ Splunk instance ของคุณ ต้องรวม protocol, domain และ port เช่น
https://localhost:8089
- Allow Self-Signed Certificates: ถ้าเปิดใช้งาน n8n จะเชื่อมต่อแม้ SSL validation จะล้มเหลว
Required capabilities#
บัญชีและ role ของคุณใน Splunk platform ต้องมีความสามารถบางอย่างเพื่อสร้าง authentication tokens:
edit_tokens_own
: ถ้าต้องการสร้าง token สำหรับตัวเองedit_tokens_all
: ถ้าต้องการสร้าง token ให้ user อื่นใน instance
ดูรายละเอียดเพิ่มเติมที่ Define roles on the Splunk platform with capabilities