<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to specify multiple conditions for the &amp;quot;test custom-signature-perf&amp;quot; command in Custom Signatures</title>
    <link>https://live.paloaltonetworks.com/t5/custom-signatures/how-to-specify-multiple-conditions-for-the-quot-test-custom/m-p/1237482#M719</link>
    <description>&lt;P&gt;Yes you can but then all patterns will need to match. I have also made an article about custom signatures that show the "OR" pattern but the "AND" pattern can also be used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/general-articles/how-to-write-palo-alto-networks-custom-vulnerability-and/ta-p/1228494" target="_blank"&gt;How to Write Palo Alto Networks Custom Vulnerability and Application Signatures with Examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you see issues you can also make sever custom signatures each for each pattern and then make another custom signature referensing the threat id's of the previous signatures with AND condition. This could be needed if you try to match the same packet part with the different string matches like "if header Example has keyword 'maybe' " and then another&amp;nbsp;"if header Example has keyword 'why' " as the processing could have moved on after the first condition to the next part of the packet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also always use "Qulifiers" to limit the Performance impact like HTTP methods where to trigger the match.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 16:40:33 GMT</pubDate>
    <dc:creator>nikoolayy1</dc:creator>
    <dc:date>2025-09-08T16:40:33Z</dc:date>
    <item>
      <title>How to specify multiple conditions for the "test custom-signature-perf" command</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/how-to-specify-multiple-conditions-for-the-quot-test-custom/m-p/1236771#M718</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I'm currently creating a custom signature.&lt;/P&gt;
&lt;P&gt;I'm checking performance using the following command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;test custom-signature-perf context &amp;lt;context&amp;gt; pattern &amp;lt;pattern&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/u-v/custom-app-id-and-threat-signatures/custom-application-and-threat-signatures/testing-pattern-performance-impact" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/u-v/custom-app-id-and-threat-signatures/custom-application-and-threat-signatures/testing-pattern-performance-impact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know if it's possible to specify multiple &amp;lt;pattern&amp;gt;s with an AND condition?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 07:37:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/how-to-specify-multiple-conditions-for-the-quot-test-custom/m-p/1236771#M718</guid>
      <dc:creator>Y.Narita347153</dc:creator>
      <dc:date>2025-08-27T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify multiple conditions for the "test custom-signature-perf" command</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/how-to-specify-multiple-conditions-for-the-quot-test-custom/m-p/1237482#M719</link>
      <description>&lt;P&gt;Yes you can but then all patterns will need to match. I have also made an article about custom signatures that show the "OR" pattern but the "AND" pattern can also be used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/general-articles/how-to-write-palo-alto-networks-custom-vulnerability-and/ta-p/1228494" target="_blank"&gt;How to Write Palo Alto Networks Custom Vulnerability and Application Signatures with Examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you see issues you can also make sever custom signatures each for each pattern and then make another custom signature referensing the threat id's of the previous signatures with AND condition. This could be needed if you try to match the same packet part with the different string matches like "if header Example has keyword 'maybe' " and then another&amp;nbsp;"if header Example has keyword 'why' " as the processing could have moved on after the first condition to the next part of the packet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also always use "Qulifiers" to limit the Performance impact like HTTP methods where to trigger the match.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 16:40:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/how-to-specify-multiple-conditions-for-the-quot-test-custom/m-p/1237482#M719</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2025-09-08T16:40:33Z</dc:date>
    </item>
  </channel>
</rss>

