Created
September 26, 2014 11:13
-
-
Save stuart-warren/ee902fed4b594417b780 to your computer and use it in GitHub Desktop.
Output date with bash for use with Logstash
This file contains 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
# Wanted to output date for use with Logstash | |
# Using gnu date: | |
date -u +"%Y-%m-%dT%H:%M:%S.%3N%:z" | |
# Outputs: 2014-09-26T11:07:05.393+00:00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment