Outputs¶
Stream telemetry to external destinations.
Documentation¶
- Output Allowlisting - Filtering output data
- Output Billing - Billing and usage
- Output Stream Structures - Data format specifications
- Testing Outputs - Testing output configurations
Programmatic Management¶
Prerequisites
All API examples require an API key with the output permission. See API Keys for setup.
List Outputs¶
package main
import (
"fmt"
limacharlie "github.com/refractionPOINT/go-limacharlie/limacharlie"
)
func main() {
client, _ := limacharlie.NewClient(limacharlie.ClientOptions{
OID: "YOUR_OID",
APIKey: "YOUR_API_KEY",
})
org := limacharlie.NewOrganization(client)
outputs, _ := org.Outputs()
fmt.Println(outputs)
}
Create Output¶
Example: create a syslog output for event data.
from limacharlie.client import Client
from limacharlie.sdk.organization import Organization
from limacharlie.sdk.outputs import Outputs
client = Client(oid="YOUR_OID", api_key="YOUR_API_KEY")
org = Organization(client)
result = Outputs(org).create(
name="my-syslog",
module="syslog",
data_type="event",
dest_host="siem.example.com:514",
)
print(result)
package main
import (
"fmt"
limacharlie "github.com/refractionPOINT/go-limacharlie/limacharlie"
)
func main() {
client, _ := limacharlie.NewClient(limacharlie.ClientOptions{
OID: "YOUR_OID",
APIKey: "YOUR_API_KEY",
})
org := limacharlie.NewOrganization(client)
result, _ := org.OutputAdd(limacharlie.OutputConfig{
Name: "my-syslog",
Module: limacharlie.OutputTypes.Syslog,
Type: limacharlie.OutputType.Event,
DestinationHost: "siem.example.com:514",
})
fmt.Println(result)
}
Delete Output¶
package main
import (
"fmt"
limacharlie "github.com/refractionPOINT/go-limacharlie/limacharlie"
)
func main() {
client, _ := limacharlie.NewClient(limacharlie.ClientOptions{
OID: "YOUR_OID",
APIKey: "YOUR_API_KEY",
})
org := limacharlie.NewOrganization(client)
resp, _ := org.OutputDel("my-syslog")
fmt.Println(resp)
}