Last active
May 11, 2021 09:03
-
-
Save thecraftman/5c6752b5ec3d5363247007c021108776 to your computer and use it in GitHub Desktop.
Logstash → Axiom Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the above example, Logstash calls the Linux date command every 1 seconds. It passes the output from this command to Axiom.