cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Who Me Too'd this topic

Querying for Detailed HIP Report on XML API

L0 Member

Hi all,

 

I am wondering if anyone has found a way to query the XML API to get a HIP report back.

All I am able to retrieve with the following call is an XML formatted version of the data you can find in the HIP match log, but not the HIP report you can see in the GUI by pressing the magnifying glass next to a log. I saw another thread from 6 years ago on here with no replies and an almost identical question.

 

Current API call (sanitized):

 

https://<PAN-IP>/api/?key=<APIKEY>&type=log&log-type=hipmatch&nlogs=200&query=( user.src eq '<username>')

https://<PAN-IP>/api/?key=<APIKEY>&type=log&action=get&job-id=xxxx 

 XML I get back from the second call (sanitized and truncated):

 

<response status="success"><result>
<job>
<tenq>16:38:22</tenq>
<tdeq>16:38:22</tdeq>
<tlast>16:38:22</tlast>
<status>FIN</status>
<id>2943</id>
</job>
<log>
<logs count="200" progress="100">
<entry logid="xxxx">
<domain>1</domain>
<receive_time>2021/03/03 16:06:26</receive_time>
<serial>xxxx</serial>
<seqno>1881</seqno>
<actionflags>0x0</actionflags>
<is-logging-service>no</is-logging-service>
<type>HIPMATCH</type>
<subtype>0</subtype>
<config_ver>2049</config_ver>
<time_generated>2021/03/03 16:06:26</time_generated>
<dg_hier_level_1>0</dg_hier_level_1>
<dg_hier_level_2>0</dg_hier_level_2>
<dg_hier_level_3>0</dg_hier_level_3>
<dg_hier_level_4>0</dg_hier_level_4>
<device_name>xxxx</device_name>
<vsys_id>1</vsys_id>
<srcuser>xxxx</srcuser>
<vsys>vsys1</vsys>
<machinename>xxxx</machinename>
<src>xxxx</src>
<matchname>xxxx</matchname>
<repeatcnt>1</repeatcnt>
<os>Windows</os>
<matchtype>profile</matchtype>
<padding1>0</padding1>
<padding2>0</padding2>
<srcipv6>0.0.0.0</srcipv6>
<hostid>xxxx</hostid>
</entry>

<TRUNCATED>

 

Thank you

Who Me Too'd this topic