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
glightfoot opened this issue
Aug 18, 2020
· 1 comment
Labels
enhancementThis is considered a feature request, not currently guaranteed by the code or design todaymtail-Language/VMIssues related to the mtail language, compiler, or VM
Is it possible to store temporary variables in an mtail program for convenience? Hidden variables seem to be for storing state between lines, but these variables would just be used for transforming data from each line. For example, using the apache program in examples, if you wanted to transform response code to response code group to save on cardinality, is this the right way to do it?
Sorry foer the delay. That looks like a reasonable approach. There's no magic that says hidden variables are for state only, you can do this if it works for you!
There's no other concept of temporary variables, but there could be. I can leave this open as a feature request.
enhancementThis is considered a feature request, not currently guaranteed by the code or design todaymtail-Language/VMIssues related to the mtail language, compiler, or VM
Is it possible to store temporary variables in an mtail program for convenience? Hidden variables seem to be for storing state between lines, but these variables would just be used for transforming data from each line. For example, using the apache program in examples, if you wanted to transform response code to response code group to save on cardinality, is this the right way to do it?
The text was updated successfully, but these errors were encountered: