How to use regular expressions while searching in Papertrail app?
Asked Answered
S

1

6

I want to search using a regular expression in the search bar of Papertrailapp.

When I try some thing like this

randomText \(\d\d\d

Expected result : randomText (223

Actual Result : No search found.

Any guidance on this will be appreciated. Thanks.

Suanne answered 3/3, 2019 at 7:59 Comment(2)
what is Papertrailapp? give us a sample input string and your desired output!Haland
For example I would like to find 5xx (Internal server error, Service unavailable, Bad gateway). What would be it's regular expression as "5\d\d" does not work. Papertrail app is a utility where you can search for string, patterns in your centralised log server. papertrailapp.comSuanne
C
3

Unfortunately, it is not possible to use Regex directly within log search. See the search documentation here.

However, you can use regex when creating re-usable log filters which, depending on your usage, may be what you're looking for. See this documentation.

Colorist answered 9/11, 2020 at 15:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.