Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 552 Bytes

interpolation.md

File metadata and controls

10 lines (8 loc) · 552 Bytes

Interpolation

When a plugin param is a string, you can use string interpolation to reference line data:

  • #{message} will return the full log line
  • #{type} will return the type of log line
  • #{toto} will return the value of the field toto, which have to be extracted with a regex filter
  • 2#{toto} will return 2 followed by the value of the field toto.
  • #{now:YYYY} will return the current year. YYYY is a date format passed to moment to format current date.