hi all

I have a question, how can merge multi lines of logs based on the multi parameters into one event?. for example, log is as following:

```
IT=1 AC=12345 p1=12345
IW=1 AC=12345 A1=check1
IW=1 E1=0
IW=2 AC=12345 A1=check2
IW=2 E1=4
IT=1 p2=ok
IT=2 AC=7894 p1=245
IW=4 AC=7894 A1=get
IW=4 E1=2
IT=2 p2=failed
```

now the expected result is as following:

```
IT=1 AC=12345 p1=12345 IW={1,2} A1={check1,check2} E1={0,4} p2=ok
IT=2 AC=7894 p1=245 IW=4 A1=get E1=2 p2=failed
```

actually i want to aggregate events first based on the IW parameter:

```
IW=1 AC=12345 A1=check1 E1=0
IW=2 AC=12345 A1=check2 E1=4
IW=4 AC=7894 A1=get E1=2
```

and then aggregate based on the IT parameter

```
IT=1 AC=12345 p1=12345 p2=ok
IT=2 AC=7894 p1=245 p2=failed
```

and at the end aggregate based on the AC parameter in one event

```
AC=12345 IT=1 p1=12345 IW={1,2} A1={check1,check2} E1={0,4} p2=ok
AC=7894 IT=2 p1=245 IW=4 A1=get E1=2 p2=failed
```

any advise will be so appreciated