I have some research data on a dashabord. The data I want to highlight is in two separate time spans Jan 1 - Jan 30 and Mar 20 - Apr 21. I want to have two radio buttons which presets these two ranges as (span 1 and span 2) rather than asking the visitors to change to these exact dates to view these results.
How can I do this?
... View more
I created some complex regex, but solved it.
rex field=F "[\"(?.)\",\"(?.)\",\"(?.*)\"]" | rex field=F "[\"(?[^,]+)\",[^,]+]" | rex field=F "[\"[^,]+\",\"(?[^,]+)\"]" | rex field=F "[\"(?[^,]+)\"]"
... View more
It can be from 1 to 3.
I can easily use rex to extract fields if it was a fixed number of elements inside. I cant work out a good regex for varying number of elements in each log's F field
... View more
I have some values in a fied which are email addresses.
eg: Values of F may be
"[""[email protected]""]"
"[""[email protected]"",""[email protected]""]"
"[""[email protected]"",""[email protected]"",""[email protected]""]"
The field F may have 1, 2 or 3 values. If there is only 1 value, it is going to be email_type2, if there are 2 values it will be email_type1 followed by email_type2 and if there are going to be 3 values, it is going to be email_type1 followed by email_type2 and email_type3.
I need to extract 3 fields, type1, type2 and type3 and include those values in the extracted fields. Can someone help me with this?
... View more