{"id":5005,"date":"2024-01-30T14:24:31","date_gmt":"2024-01-30T22:24:31","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=5005"},"modified":"2024-01-30T14:24:32","modified_gmt":"2024-01-30T22:24:32","slug":"how-to-search-system-logs-through-pan-os-cli","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=5005","title":{"rendered":"How to Search System Logs Through PAN-OS CLI"},"content":{"rendered":"\n<p>This article is showing how to do quick\/handy search for the specific pattern in the system logs, although it is not only limited to this log.<\/p>\n\n\n\n<p><strong>Example 1&nbsp; &#8211; (case sensitive)<\/strong><br>In the first example we are searching for the pattern &#8220;<strong><em>Installed<\/em><\/strong>&#8221; in the backward direction which is optional but be aware that the pattern itself is case sensitive . In the second we are searching for the pattern &#8220;<strong><em>installed<\/em><\/strong>&#8221; small letter &#8220;<em><strong>i<\/strong><\/em>&#8220;. Outcome is different.<\/p>\n\n\n\n<p>\u00a0admin@WF-80-156> show log system direction equal backward query equal &#8220;(description contains Installed)&#8221;<br>Time \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Severity Subtype Object EventID ID Description<br>=============================================================================<br>2020\/06\/01 17:19:04 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wf software version 9.0.7<br>2020\/05\/30 02:06:50 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1496-1697.tgz<br>2019\/11\/29 10:58:16 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1343-1544.tgz<br>2019\/11\/22 13:06:36 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wf software version 8.1.10<br>2019\/10\/30 17:18:27 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1343-1544.tgz<br>2019\/10\/30 15:24:10 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wf software version 8.1.0<br>2019\/06\/24 15:49:42 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1250-1451.tgz<br>2019\/04\/09 15:49:56 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1196-1397.tgz<br>2019\/04\/05 17:00:58 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1194-1395<\/p>\n\n\n\n<p>admin@WF-80-156> show log system direction equal backward query equal &#8220;(description contains installed)&#8221;<br>Time \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Severity Subtype Object EventID ID Description<br>=============================================================================<br>2019\/10\/30 17:18:40 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0WildFire metadata version 1343-1544 installed by admin<br>2019\/05\/14 13:32:22 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0GP MDM license is installed.<br>2019\/05\/14 13:31:09 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0GP MDM license is installed.<br>2019\/04\/05 17:01:13 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0WildFire metadata version 1194-1395 installed by admin<br>admin@WF-80-156>\u00a0<\/p>\n\n\n\n<p><strong>Example 2 &#8211; logical operation<\/strong><br>It is possible to combine the search contains field with the logical operators. Below examples are showing the output when using logical operator &#8220;<strong>AND<\/strong>&#8221; and logical operator &#8220;<strong>OR<\/strong>&#8220;.<\/p>\n\n\n\n<p>admin@WF-80-156> show log system direction equal backward query equal &#8220;(description contains Installed) and (description contains 9.0.7)&#8221;<br>Time \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Severity Subtype Object EventID ID Description<br>=============================================================================<br>2020\/06\/01 17:19:04 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wf software version 9.0.7<\/p>\n\n\n\n<p>admin@WF-80-156> show log system direction equal backward query equal &#8220;(description contains Installed) or (description contains configuration)&#8221;<br>Time \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Severity Subtype Object EventID ID Description<br>=============================================================================<br>2020\/06\/01 17:26:49 info \u00a0 \u00a0 cluster \u00a0 \u00a0 \u00a0 \u00a0cluster 0 \u00a0Cluster daemon configuration load phase-2 succeeded.<br>2020\/06\/01 17:26:49 info \u00a0 \u00a0 cluster \u00a0 \u00a0 \u00a0 \u00a0cluster 0 \u00a0Cluster engine will be started for: configuration change.<br>2020\/06\/01 17:26:49 info \u00a0 \u00a0 cluster \u00a0 \u00a0 \u00a0 \u00a0cluster 0 \u00a0Cluster daemon configuration load phase-1 succeeded.<br>2020\/06\/01 17:19:04 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wf software version 9.0.7<br>2020\/05\/30 02:06:50 info \u00a0 \u00a0 general \u00a0 \u00a0 \u00a0 \u00a0general 0 \u00a0Installed wfm package: panup-all-wfmeta-1496-1697.tgz<br>2020\/05\/07 19:54:56 info \u00a0 \u00a0 cluster \u00a0 \u00a0 \u00a0 \u00a0cluster 0 \u00a0Cluster daemon configuration load phase-2 succeeded.<\/p>\n\n\n\n<p>&#8230;&#8230;&#8230;..for the brevity&#8230;.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ref: <a href=\"https:\/\/knowledgebase.paloaltonetworks.com\/KCSArticleDetail?id=kA10g0000008ULECA2\">How to search system logs through CLI &#8211; specific case WF-500 &#8211; Knowledge Base &#8211; Palo Alto Networks<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is showing how to do quick\/handy search for the specific pattern in the system logs, although it is not only limited to this log. Example 1&nbsp; &#8211; (case sensitive)In the first example we are searching for the pattern &#8220;Installed&#8221; in the backward direction which is optional but be aware that the pattern itself <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=5005\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,9],"tags":[1751],"class_list":["post-5005","post","type-post","status-publish","format-standard","hentry","category-firewalls","category-networks","tag-search-system-logs-through-pan-os-cli"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5005"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5005\/revisions"}],"predecessor-version":[{"id":5006,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5005\/revisions\/5006"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}