Skip to content

Instantly share code, notes, and snippets.

@portante
Created September 27, 2016 18:39
Show Gist options
  • Select an option

  • Save portante/7d4817f03c390f156e7b56f2af154c4e to your computer and use it in GitHub Desktop.

Select an option

Save portante/7d4817f03c390f156e7b56f2af154c4e to your computer and use it in GitHub Desktop.
GlusterFS grok pattens
GTIMESTAMP %{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}
GMESSAGEID \[MSGID: %{INT:msgid}\]
GSRCINFO \[%{NOTSPACE:srcfile}:%{INT:linenum}:%{NOTSPACE:funcname}\]
GLOGMSGID \[%{GTIMESTAMP:timestamp}\] %{NOTSPACE:level}%{SPACE}%{GMESSAGEID}%{SPACE}%{GSRCINFO}%{SPACE}%{NOTSPACE:subvol}:%{SPACE}%{GREEDYDATA:message}
GLOGNOMSGID \[%{GTIMESTAMP:timestamp}\] %{NOTSPACE:level} %{GSRCINFO} %{NOTSPACE:subvol}:%{SPACE}%{GREEDYDATA:message}
GLOGREPEAT The message \"%{NOTSPACE:level}%{SPACE}%{GMESSAGEID}%{SPACE}%{GSRCINFO}%{SPACE}%{NOTSPACE:subvol}:%{SPACE}%{GREEDYDATA:message}\" repeated %{INT:repeat_count} times between \[%{GTIMESTAMP:timestamp}\] and \[%{GTIMESTAMP:repeat_end}\]
GLUSTERSTACK \[%{GTIMESTAMP:timestamp}\] %{NOTSPACE:level} %{GSRCINFO} \((?'traceback'-->%{SPACE}?%{PATH}%{SPACE}?\(%{NOTSPACE}\) \[%{NOTSPACE}\](%{SPACE}|%{SPACE}\g'traceback'))%{SPACE}\)%{SPACE}%{GREEDYDATA:message}
GLUSTERASSERT \[%{GTIMESTAMP:timestamp}\] %{NOTSPACE:level} %{GSRCINFO} \(--> %{INT}-%{NOTSPACE:component}?: %{GREEDYDATA:message}
_GLUSTERGRAPHHEADER %{SPACE}?(\+-+\+|Final graph:)
_GLUSTERGRAPH %{SPACE}?%{INT:linenum}: ((volume|type|option|end-volume)?%{GREEDYDATA})?
GLUSTERVOLFILE (%{_GLUSTERGRAPHHEADER}|%{_GLUSTERGRAPH})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment