Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I need the common RE for representing the below values

Invoice_IID: 00000000-4164-1638-e168-ffff08d24460
Invoice_IID 00000000-4164-1638-e168-ffff08d24460
invoice iid 00000000-4164-1638-074f-ffff08d24461
<invoice iid="00000000-4164-1638-074f-ffff08d24461"
<invoice iid="00000000-4164-1638-074f-ffff08d24461"
<parent_invoice iid="00000000-4164-1638-074f-ffff08d24461"

I am trying with the below configuration with my grok debugger like

http://grokconstructor.appspot.com/do/match#result

grok { 
  match => { "msg" => "[iI]no*voice[_," "][iI][iI][dD]:? %{UUID:InvoiceIID}" } 
}

I need the common support for all types of content in one Regular Expression

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
161 views
Welcome To Ask or Share your Answers For Others

1 Answer

Yes, I got the solution for all above types of data.

matching pattern is:

grok { 
  match => { "msg" => "[<]*[parent_]*[<]*[iI]no*voice[_," "][iI][iI][dD][" "]*:?[" "]*=?[\,"]*%{UUID:InvoiceIID}[",\]*" } 
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...