-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if string exists #174
Comments
Hi! Try something like this
|
thanks for the reply @ashevchuk123 |
Because you need to initialize patterns (variables with regexes) and include them in config.
in this file you may create patterns for your error, for example: You may find examples for patterns in the zip archive provided in the release. |
OK thanks so much for the help : ) |
my issue is that if the string is not found I don't get the metric |
and im trying it with multiple metrics
is this the right way to do it ? |
and I have in my patterns |
How can I have it so I search if a string exists in a log file
tired something like this
if the string error is found in log file error_in_log will have the value of 1
The text was updated successfully, but these errors were encountered: