Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created September 26, 2014 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuart-warren/ee902fed4b594417b780 to your computer and use it in GitHub Desktop.
Save stuart-warren/ee902fed4b594417b780 to your computer and use it in GitHub Desktop.
Output date with bash for use with Logstash
# 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