Skip to content

Instantly share code, notes, and snippets.

@thecraftman
Last active May 11, 2021 09:03
Show Gist options
  • Save thecraftman/5c6752b5ec3d5363247007c021108776 to your computer and use it in GitHub Desktop.
Save thecraftman/5c6752b5ec3d5363247007c021108776 to your computer and use it in GitHub Desktop.
Logstash → Axiom Configuration
input{
exec{
command => "date"
interval => "1"
}
}
output{
elasticsearch{
hosts => ["$YOUR_AXIOM_URL:443/api/v1/datasets/<dataset>/elastic"]
# api_key can be your ingest or personal token
api_key => "user:token"
ssl => true
}
}
@thecraftman
Copy link
Author

In the above example, Logstash calls the Linux date command every 1 seconds. It passes the output from this command to Axiom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment