You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to replace certain values in a string with other values.
i.e. replace the number in the following string with NUMBER:
Input: "...this is a variable text... CONSTANT 543435"
Output: "...this is a variable text... CONSTANT NUMBER"
There can be multiple rules with a different CONSTANT that also require this replacement.
Is it possible to achieve this with a single processor, except for the normalizer?
I have found a work-around using the dissector. Here I use & to get a prefix at the end, assuming & never appears in the string: %{target} CONSTANT %{}&%{+( CONSTANT NUMBER)target}
Is there a better way using one processor? This work-around would not be necessary if the dissector could add a suffix.
The text was updated successfully, but these errors were encountered:
no... there is no solution yet.
we could implement a new processor for this. I do not suggest to extend the dissector for that, because it is build to dissect not to replace. A new processor replacer should do the job.
I would like to replace certain values in a string with other values.
i.e. replace the number in the following string with
NUMBER
:There can be multiple rules with a different
CONSTANT
that also require this replacement.Is it possible to achieve this with a single processor, except for the normalizer?
I have found a work-around using the dissector. Here I use
&
to get a prefix at the end, assuming&
never appears in the string:%{target} CONSTANT %{}&%{+( CONSTANT NUMBER)target}
Is there a better way using one processor? This work-around would not be necessary if the dissector could add a suffix.
The text was updated successfully, but these errors were encountered: