Hi Frank, I had copy paste complete event details and when I execute the query for a month period, I could see there are some events have host value as 0,21,test01.xxx.com and Azure in the selected fields.
In some events the host field value is located at different position, but in this case is there any away we can remove these host being displayed in host field.
Query Detail:
index=firewall sourcetype="paloalto:network:log" | rex "(?:[^,]*,){14}(?\w*)" | search host=0
Events Detail: When searched with the host value=0
2/19/18
6:48:32.000 AM
0.0-10.x.x.x,0,2,0,aged-out,50,0,0,0,Ogden-FW,node01,from-policy,,,0,,0,,N/A
eventtype = nix-all-logs eventtype = pan network host = 0 source = /opt/syslogs/paloalto/test01.xxx.com/paloalto.log sourcetype = paloalto:network:log tag = network
2/7/18
7:31:22.000 PM
Feb 8 00:31:22 test02.xxx.com 1,2018/02/08 00:31:00,012501001041,CORRELATION,,,2018/02/08 00:31:00,168.133.221.8,,,compromised-host,medium,17,0,0,0,,test02,2003071744,Beacon Detection,6005,"Host has made use of Internet Relay Chat (IRC), a protocol popular with command-and-control activity."
eventtype = nix-all-logs eventtype = pan network host = 0 source = /opt/syslogs/paloalto/test02.xxx.com/paloalto.log sourcetype = paloalto:network:log tag = network
Query Detail:
index=firewall sourcetype="paloalto:network:log" | rex "(?:[^,]*,){14}(?\w*)" | search host=test01.xxx.com
Event Details: When searched with the host value=test01.xxx.com
Feb 4 05:31:09 test01.xxx.com 1,2018/02/04 05:31:09,007257000034869,T
eventtype = nix-all-logs eventtype = pan network host = test01.xxx.com source = /opt/syslogs/paloalto/test01.xxx.com/paloalto.log sourcetype = paloalto:network:log tag = network
1/25/18
7:48:05.000 AM
om-policy,,,0,,0,,N/A
eventtype = nix-all-logs eventtype = pan network host = test01.xxx.com source = /opt/syslogs/paloalto/test01.xxx.com/paloalto.log sourcetype = paloalto:network:log tag = network
Query Detail:
index=firewall sourcetype="paloalto:network:log" | rex "(?:[^,]*,){14}(?<host>\w*)" | search host=21
Event details: When searched with the host value=21
42643087,1,60564,9080,0,0,0x100053,tcp,allow,4442,1860,2582,23,2018/02/19 13:25:01,21,not-resolved,0,6477528057962830262,0x8000000000000000,10.x.x.x-10.x.x.x,10.x.x.x-10.x.x.x,0,12,11,tcp-rst-from-client,17,0,0,0,Data_Center,test01fw,from-policy,,,0,,0,,N/A
eventtype = nix-all-logs eventtype = pan network host = 21 source = /opt/syslogs/paloalto/test01.xxxx.com/paloalto.log sourcetype = paloalto:network:log tag = network
Query Detail:
index=firewall sourcetype="paloalto:network:log" | rex "(?:[^,]*,){14}(?\w*)" | search host=Azure
Event Details: When searched with the host value=Azure
RAFFIC,end,1,2018/02/04 05:30:58,10.134.64.7,168.133.4.232,0.0.0.0,0.0.0.0,trust-xxxx,,,dns,vsys1,Azure-Private,Azure-Data-Center,ethernet1/2,ethernet1/1,pan_log_forward,2018/02/04 05:30:58,126039,1,46728,53,0,0,0x4064,udp,allow,x7,x2,x,x,2018/02/04 05:30:28,0,any,0,131004235,0x8000000000000000,10.x.x.x-10.x.x.x,United States,0,1,1,aged-out,115,0,0,0,,node02fw,from-policy,,,0,,0,,N/A
Hey I had noticed that we are using 3.8.0 version of Palo alto add-on but I am not sure why the source type was made different in our organisation. I can create another new question in the answer.com for palo alto sourcetype related query.
... View more