<?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 Does anyone have an idea how to make a bitwise AND operation for a high number of events in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647116#M223988</link>
    <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hey all&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN&gt;The PAN-OS traffic log include a log field ‚flags‘&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;‚Flags‘ is a 32-Bit field that provide details on session. This field can be decoded with a bitwise AND operation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;E.g. you have to bitwise AND operate the value 0x01000000 to the logged value to know the a SSL session was decrypted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;I guess that I have to convert the logged hexadecimal value to decimal. That is no problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;But the bitwise operation require to convert the value to a binary value and here I‘m stuck.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;I don‘t manage to convert the value in binary for each event of the traffic logs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;That‘s why I not get to the point where to bitwiseand the logged value with a value provided by a list from Palo Alto Networks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;Does anyone have an idea how to make a bitwise AND operation for a high number of events in Splunk?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 13:59:05 GMT</pubDate>
    <dc:creator>Berma</dc:creator>
    <dc:date>2023-06-16T13:59:05Z</dc:date>
    <item>
      <title>Does anyone have an idea how to make a bitwise AND operation for a high number of events in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647116#M223988</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hey all&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN&gt;The PAN-OS traffic log include a log field ‚flags‘&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;‚Flags‘ is a 32-Bit field that provide details on session. This field can be decoded with a bitwise AND operation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;E.g. you have to bitwise AND operate the value 0x01000000 to the logged value to know the a SSL session was decrypted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;I guess that I have to convert the logged hexadecimal value to decimal. That is no problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;But the bitwise operation require to convert the value to a binary value and here I‘m stuck.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;I don‘t manage to convert the value in binary for each event of the traffic logs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;That‘s why I not get to the point where to bitwiseand the logged value with a value provided by a list from Palo Alto Networks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;Does anyone have an idea how to make a bitwise AND operation for a high number of events in Splunk?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 13:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647116#M223988</guid>
      <dc:creator>Berma</dc:creator>
      <dc:date>2023-06-16T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bitwise operation for log field firewall log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647122#M223991</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval binary=replace(hex,"0","z")
| eval binary=replace(binary,"1","o")
| eval binary=replace(binary,"f","1111")
| eval binary=replace(binary,"e","1110")
...
| eval binary=replace(binary,"o","0001")
| eval binary=replace(binary,"z","0000")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jun 2023 08:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647122#M223991</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-15T08:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bitwise operation for log field firewall log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647181#M224007</link>
      <description>&lt;P&gt;This solution is working like a charm and an effective way to convert hex to bin.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;unfortunately I am now with the second part of the task, the bitwise AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;eval = bwa ( bin1 * bin2)&lt;/P&gt;&lt;P&gt;e.g.&lt;BR /&gt;bin1 = 0000000000000000000000011011&lt;/P&gt;&lt;P&gt;bin2 = 0001000000000000000000000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the expected result should be&lt;/P&gt;&lt;P&gt;0000000000000000000000000000&lt;/P&gt;&lt;P&gt;but the result from the eval function is&lt;/P&gt;&lt;P&gt;1101100000000000000000000000&lt;/P&gt;&lt;P&gt;maybe the detour via binary numbers is wrong approach or the operation not correct.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;do you have an idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647181#M224007</guid>
      <dc:creator>Berma</dc:creator>
      <dc:date>2023-06-15T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bitwise operation for log field firewall log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647193#M224011</link>
      <description>&lt;P&gt;If you just want the value of the 4th bit, use substr()&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 16:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-anyone-have-an-idea-how-to-make-a-bitwise-AND-operation-for/m-p/647193#M224011</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-15T16:43:44Z</dc:date>
    </item>
  </channel>
</rss>

