Can you write a grok expression for the following requirement:
We have 3 types of events, as shown below:
08D7119FBFEC19B7;250 2.6.0 <DM6PR09MB3369DAB34BC8812C1CF1E16181C00@DM6PR09MB3369.namprd09.prod.outlook.com> [InternalId=669077,Hostname=Abcd] Queued mail for delivery
08D7119FBFEC19B7;250 2.6.0 <DM6PR09MB3369DAB34BC8812C1CF1E16181C00@DM6PR09MB3369.namprd09.prod.outlook.com> [InternalId=669077] Queued mail for delivery
08D7119FBFEC19B7;250 2.6.0 <DM6PR09MB3369DAB34BC8812C1CF1E16181C00@DM6PR09MB3369.namprd09.prod.outlook.com> [Hostname=Abcd] Queued mail for delivery
For the above events, write a single grok expression which satisfies the following cases:
Grok should fetch
InternalId
andHostname
values if both are presentGrok should fetch the
InternalId
value if onlyInternalId
is presentGrok should fetch the
Hostname
value if onlyHostname
is present