So here is an example of part of our error message string below and what i want to do is parse a field specifically that has in it the value "app.ERROR" as the value, this string varies as it can be api.ERROR, or app.WARNING etc.. the only thing i know for sure in our log file is where the field STARTS in the file, meaning it will always start at position 23 and goes up to the colon (:). But i cannot find a good example of doing this. I would imagine REGEX is used here but just cannot find exactly what i need here.
If anyone has a good way of doing this i would VERY much appreciate it :)
[2017-09-12 01:42:41] app.ERROR: exception
Please sign in to leave a comment.