<?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: two's complement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268531#M189952</link>
    <description>&lt;P&gt;While it will take a minor amount of programming skills (probably not a lot), I think a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/AdvancedDev/ScriptedInputsIntro"&gt;scripted input&lt;/A&gt; may be your best choice.  You could use either method described: stream it in via the script, or use the script to rewrite to a new file that Splunk reads.  Either way, it's basically that you use the script to modify the latitude and longitude fields first into something like whate you need.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Oct 2015 01:33:29 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2015-10-10T01:33:29Z</dc:date>
    <item>
      <title>two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268526#M189947</link>
      <description>&lt;P&gt;Hello I need to use the mathematical opération called "two's complement".&lt;BR /&gt;
In C programming language it is written like that : &lt;BR /&gt;
Complement=~B&lt;/P&gt;

&lt;P&gt;I can't find a function similar in Splunk. If someone has an idea.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 15:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268526#M189947</guid>
      <dc:creator>clorne</dc:creator>
      <dc:date>2015-10-09T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268527#M189948</link>
      <description>&lt;P&gt;What exactly are you trying to accomplish with two's complement?  Perhaps there is another way to achieve your goal.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268527#M189948</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-09T16:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268528#M189949</link>
      <description>&lt;P&gt;Hello richgalloway.&lt;BR /&gt;
Thanks for your reply.&lt;BR /&gt;
I have a log containing traffic data regarding planes. The purpose is to represent where the planes are. &lt;BR /&gt;
In the log, the latitude and longitude are coded in "hex two's complement".&lt;BR /&gt;
I need to translate the data in order to use the geostats function. &lt;/P&gt;

&lt;P&gt;Since I did not find the function, I am preparing myself to translate each Hexadecimal character in binary code. And then replace each 1 by zero and each zero by one. But if I could find the function already done ...&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 18:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268528#M189949</guid>
      <dc:creator>clorne</dc:creator>
      <dc:date>2015-10-09T18:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268529#M189950</link>
      <description>&lt;P&gt;I'm not aware of any function that will perform that calculation.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 19:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268529#M189950</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-09T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268530#M189951</link>
      <description>&lt;P&gt;I don't think there is  a function for that, but maybe you can use the answer below to save yourself some work.  I guess you could just flip the bits during the replace as well?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/222813/convert-an-hexadecimal-field-to-binary.html#answer-221785"&gt;http://answers.splunk.com/answers/222813/convert-an-hexadecimal-field-to-binary.html#answer-221785&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2015 00:02:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268530#M189951</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2015-10-10T00:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268531#M189952</link>
      <description>&lt;P&gt;While it will take a minor amount of programming skills (probably not a lot), I think a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/AdvancedDev/ScriptedInputsIntro"&gt;scripted input&lt;/A&gt; may be your best choice.  You could use either method described: stream it in via the script, or use the script to rewrite to a new file that Splunk reads.  Either way, it's basically that you use the script to modify the latitude and longitude fields first into something like whate you need.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2015 01:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268531#M189952</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-10-10T01:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: two's complement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268532#M189953</link>
      <description>&lt;P&gt;Thanks Maciep for your reply. I will be obliged to do this "string" manipulation since there is no binary operator&lt;BR /&gt;
I do not vote for that because it seems very weird to me ...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 12:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-s-complement/m-p/268532#M189953</guid>
      <dc:creator>clorne</dc:creator>
      <dc:date>2015-10-15T12:26:06Z</dc:date>
    </item>
  </channel>
</rss>

