Hello,
i have a couple of log lines which go like this , that have varying number of disks
1628868082.953|7ec93a454940| disk-usage: [1]=46% [2]=44% [3]=52% [4]=52% [5]=46% [6]=40% [7]=45% [8]=48%
1628868082.953|7ec93a454940| disk-usage: [1]=38% [2]=10%
1628868082.953|7ec93a454940| disk-usage: [1]=46% [2]=44% [3]=52% [4]=52% [5]=46% [6]=40% [7]=45% [8]=48% [9]=15% [10]=28%
I tried writing a grok filter with multiple patterns , but hasnt worked.
match => {"message" =>["%{NUMBER:epoch_time}%{NOTSPACE:ThreadID} %{WORD:cache}-%{WORD:cache}: %{NOTSPACE:cache}=%{NUMBER:Disk_1}% %{NOTSPACE:cache}=%{NUMBER:Disk_2}% %{NOTSPACE:cache}=%{NUMBER:Disk_3}% %{NOTSPACE:cache}=%{NUMBER:Disk_4}% %{NOTSPACE:cache}=%{NUMBER:Disk_5}% %{NOTSPACE:cache}=%{NUMBER:Disk_6}% %{NOTSPACE:cache}=%{NUMBER:Disk_7}% %{NOTSPACE:cache}=%{NUMBER:Disk_8}%","%{NUMBER:cache_time}%{NOTSPACE:ThreadID} %{WORD:cache}-%{WORD:cache}: %{NOTSPACE:cache}=%{NUMBER:Disk_1}% %{NOTSPACE:cache}=%{NUMBER:Disk_2}%"]}
Can someone help?