How to substring a specific content with painless script

Viewed 8

I use Kibana, for a visualization I need a substring of my log.

Let say my log ist.

Lorem ipsum dolor BookID 465, orderID: 45, consetetur sadipscing elitr.

and another example

Lorem ipsum dolor BookID 12356468, orderID: 45, consetetur sadipscing elitr.

What is the correct script to extract 465 or 12356468. As you see the length of the IDs can be different.

0 Answers
Related