<?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 Custom Parsing Rule - Cohesity in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1222809#M8009</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was a fun project. Looks like it is mostly working correctly. Cohesity syslogs come in as a big blob in one field so I messed with some parsing rules to give them their own datasets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only known issue I'm seeing so far is the logs get duplicated into the cohesity "raw" dataset at the end.. not sure how to fix that quite yet.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 18:34:40 GMT</pubDate>
    <dc:creator>Jesse_Siegrist</dc:creator>
    <dc:date>2025-03-05T18:34:40Z</dc:date>
    <item>
      <title>Custom Parsing Rule - Cohesity</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1222809#M8009</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was a fun project. Looks like it is mostly working correctly. Cohesity syslogs come in as a big blob in one field so I messed with some parsing rules to give them their own datasets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only known issue I'm seeing so far is the logs get duplicated into the cohesity "raw" dataset at the end.. not sure how to fix that quite yet.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 18:34:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1222809#M8009</guid>
      <dc:creator>Jesse_Siegrist</dc:creator>
      <dc:date>2025-03-05T18:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Parsing Rule - Cohesity</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223430#M8033</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/259674"&gt;@Jesse_Siegrist&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logs are correctly parsed into &lt;STRONG data-start="504" data-end="540"&gt;cohesity_backups_data_protection&lt;/STRONG&gt;, &lt;STRONG data-start="542" data-end="566"&gt;cohesity_backups_api&lt;/STRONG&gt;, and &lt;STRONG data-start="572" data-end="599"&gt;cohesity_backups_parsed&lt;/STRONG&gt;, but they are &lt;STRONG data-start="614" data-end="657"&gt;still appearing in cohesity_backups_raw&lt;/STRONG&gt;, leading to duplication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This happened due to below:&lt;BR /&gt;[INGEST:vendor="Cohesity", product="Backups", target_dataset="cohesity_backups_raw", no_hit=keep] &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The issue is likely that all logs are still passing through this rule after the other extractions, meaning any unfiltered logs (including already parsed logs) get dumped into &lt;CODE data-start="1036" data-end="1058"&gt;cohesity_backups_raw&lt;/CODE&gt;.The &lt;STRONG data-start="1070" data-end="1085"&gt;no_hit=drop&lt;/STRONG&gt; parameter should prevent logs from duplicating if they are correctly filtered in previous parsing steps, but it’s possible that some logs are still unaccounted for.&lt;/P&gt;
&lt;P&gt;Check whether attached file helps:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 10:29:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223430#M8033</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2025-03-11T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Parsing Rule - Cohesity</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223458#M8036</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ashutosh,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Do you know what the actual behavior of "drop" is? I was hesitant to use that because I was concerned if it did not match the first filter, then the log would be discarded completely rather than moving on to the next condition.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I asked support about it and they tried to tell me I could use 'next' rather than 'keep' or 'drop'.. which was a lie&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:34:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223458#M8036</guid>
      <dc:creator>Jesse_Siegrist</dc:creator>
      <dc:date>2025-03-11T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Parsing Rule - Cohesity</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223520#M8044</link>
      <description>&lt;UL class="itemizedlist"&gt;
&lt;LI class="listitem"&gt;
&lt;P&gt;&lt;CODE class="code"&gt;drop&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;takes a condition similar to the XQL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="code"&gt;filter&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stage (same syntax), but drops every log entry that passes that condition. One can think of it as a negative filter, so&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="code"&gt;drop &amp;lt;condition&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is not equivalent to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="code"&gt;filter not &amp;lt;condition&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="listitem"&gt;
&lt;P&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="code"&gt;no_hit = drop&lt;/CODE&gt;, then in a scenario where none of the rules in the group generates output for a given log record, that record is discarded.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Documentation/INGEST" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Documentation/INGEST&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if the provided parsing rule works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you feel this has answered your query, please let us know by clicking like and&amp;nbsp; on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 06:20:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223520#M8044</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2025-03-12T06:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Parsing Rule - Cohesity</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223589#M8048</link>
      <description>&lt;P&gt;Ashutosh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I think we're close here. "&lt;SPAN&gt;in a scenario where &lt;EM&gt;none&lt;/EM&gt; of the rules in the group generates output for a given log record, that record is discarded"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That is the crux of the issue as I see it. So lets consider the journey of a single log.&amp;nbsp;&lt;BR /&gt;Is it like.. scenario 1: "check condition one, no match... check condition two.. no match -&amp;gt; check final condition no match -&amp;gt; discard log"&lt;BR /&gt;OR&lt;BR /&gt;Is it scenario 2:&amp;nbsp; "Check condition one, no match -&amp;gt; discard log.. no further conditions checked"&amp;nbsp; &amp;lt;- this is the situation I'm afeared of.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And in the example of a match being found.. is the behavior like "Check condition 1, no match.. check condition two,&amp;nbsp;&lt;EM&gt;match..&amp;nbsp;&lt;/EM&gt;log gets put into condition two dataset.. no further rules processed". or will it continue to process rules after the first match?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 15:46:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/custom-parsing-rule-cohesity/m-p/1223589#M8048</guid>
      <dc:creator>Jesse_Siegrist</dc:creator>
      <dc:date>2025-03-12T15:46:22Z</dc:date>
    </item>
  </channel>
</rss>

