Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have the simple message coming in my logstash:
2018-09-30 20:25:07.708 INFO 8013 --- [nio-8443-exec-3] c.e.demo.controller.UsuarioController : INICIO CHAMADA | 311
I want to remove the following field from this message.
"311"
You're almost there. You simply need to escape the pipe | character with a backslash (otherwise it matches the 801 after INFO), like this:
|
801
INFO
: INICIO CHAMADA \| (?<identificador_chamada>[0-9]{3}) ^ | add this
and you'll get this
{ "identificador_chamada": [ "311" ] }
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.