I have no idea.
I have many event like this.
/abcd/efgh/ is common.
so, I want to do regular expression by specifying the beggining.
I think it is working.
but Error happen.
I know I am wrong, but I have no idea.
I wish this was recognized as a field by default..........(;;)
Could you help me?
If I understand it correct you can try this regex:
| rex "[\/]*abc_d\/[efg]+_h(?<unitpath>\/\w+_\w+\/\w+\/\w+_\w+)"
That will match
/abcd_ef/1234/ghi_jk/ /zxcv_vf/56789/sdfg_h/ /dfghh_h/5y865/ghjk_r/
Hope this helps ...
Thank you for hepling me.
I thought only rex field = could be used.
I have to read documentation carefully again.
I learned a lot.
Thank you so much.
check if this what you are looking for.
I am extracting the individual fields after the common information(/abcd/efgh/)
| rex field=raw"\/abcd\/efgh\/(?P\w[a-zA-Z].)\/(?P\d.)\/(?P\w[a-zA-Z_]*)"