line

doc codec


[ Encoder usage ] [ Decoder usage ]

Encoder usage

Synopsys

codec => line {
}

Available settings

Setting Type Info Default value
charset string "UTF-8"
delimiter string "\\n"
format string "{{TS "dd/MM/yyyy:HH:mm:ss" .}} {{.host}} {{.message}}"
var hash {}

Details

charset

  • Value type is string
  • Default value is "UTF-8"
  • One of "US-ASCII" "ISO-8859-1" "latin1" "arabic" "hebrew" "Shift_JIS" "EUC-KR" "ISO-2022-JP" "ISO-8859-15" "IBM869" "windows-1252" ...

    See the IANA registry for more details

    delimiter

  • Value type is string
  • Default value is "\\n"
  • Change the delimiter that separates lines

    format

  • Value type is string
  • Default value is "{{TS "dd/MM/yyyy:HH:mm:ss" .}} {{.host}} {{.message}}"
  • Format as a golang text/template

    var

  • Value type is hash
  • Default value is {}
  • You can set variable to be used in Statements by using ${var}. each reference will be replaced by the value of the variable found in Statement’s content The replacement is case-sensitive.

    Full configuration blueprint

    Expand me...

    Decoder usage

    Synopsys

    codec => line {
    }
    

    Available settings

    Setting Type Info Default value
    charset string "UTF-8"
    delimiter string "\\n"

    Details

    charset

  • Value type is string
  • Default value is "UTF-8"
  • One of "US-ASCII" "ISO-8859-1" "latin1" "arabic" "hebrew" "Shift_JIS" "EUC-KR" "ISO-2022-JP" "ISO-8859-15" "IBM869" "windows-1252" ...

    See the IANA registry for more details

    delimiter

  • Value type is string
  • Default value is "\\n"
  • Change the delimiter that separates lines

    Full configuration blueprint

    Expand me...