graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Is there any config for the multiline message to decode \n for linebreaks

Open R1310328554 opened this issue 1 year ago • 1 comments

I got a multiline message from rsyslog like : 2023/12/21 19:03:22 1255311 [INFO]program(11) aaa\n bbb

but my graylog search result show exactly the same as the rawmsg.

I want the line feed aka \n to be show in the search result,

Expected Behavior

2023/12/21 19:03:22 1255311 [INFO]program(11) aaa\n bbb

to be 2 lines: 2023/12/21 19:03:22 1255311 [INFO]program(11) aaa bbb

Current Behavior

messages are always in one line: 2023/12/21 19:03:22 1255311 [INFO]program(11) aaa\n bbb

Possible Solution

Is there any config for the multiline message ??

I'v tried using the pipeline to replace \n to \n

or
, but neither didnt work:

let output_1 = get_field( field : "message" ); let output_2 = to_string( value : output_1, default : "" ); let output_3 = replace( value : output_2, search : "\n", replacement : "
" ); set_field( field : "message", value : output_3, clean_field : false ); image

Your Environment

open-core form https://github.com/Graylog2/docker-compose.git , a week ago.

  • Graylog Version:
  • Java Version:
  • OpenSearch Version:
  • MongoDB Version:
  • Operating System:
  • Browser version:

R1310328554 avatar Jan 19 '24 11:01 R1310328554