How To collect Pattern Including \ n

telegraf
#1

Thank you always for your help.

I have Some Question

Sample Log

----------------------
START 1
END 0
---------------------

[inputs.logparser.grok]

    custom_patterns = '''
    TIMESTAMP_ALT %{HOUR}:%{MINUTE}:%{SECOND}(.[0-9])
	AAA ([0-9])
    SSS (START)
	SSS2 (END)
	AAA2 ([0-9])
	'''
    patterns = ['%{SSS} %{AAA:s}\n%{SSS2} %{AAA2:s2}%{GREEDYDATA}']

I want to put it in one Recode from the above log.

wanted ) time : filed:s filed:s2 …
No wanted ) time : field:s
time : field:s2

As a result of the test, it seems that even if you put \ n in a Pattern, it is going straight over to the sound line when meet \ n.

Is there a solution for Pattern including \ n?