-
In your Logstash pipeline configuration file, add an
outputsection that defines thehttpplugin:-
Replace
API_TOKENwith the API token generated from your service account. Cortex XCOR recommends storing your API token in a separate file or Kubernetes Secret and calling it using an environment variable, such as$API_TOKEN.The service account must have read access to route log data to Cortex XCOR. -
Replace
TENANTwith the name of your Cortex XCOR tenant. -
Optional: The
format=>"json_batch"option collects each batch of events received by the output and places them into a single JSON array that’s sent in one request.
-
Replace
- After defining the output, contact Cortex XCOR Support and indicate which field in your data contains log timestamps.
Route logs from Logstash
Learn how to route logs from Logstash to Palo Alto Networks Cortex XCOR.
You can route log data from Logstash to Palo Alto Networks Cortex XCOR. To route
logs, configure an
HTTP output plugin
in your
Logstash pipeline configuration file
that specifies your Cortex XCOR tenant as a destination.