<?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 input encrypted files like PGP encrypted files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-input-encrypted-files-like-PGP-encrypted-files/m-p/506552#M86235</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;There is no direct way of onboarding encrypted data to Splunk. In case there is a requirement to do so, you can go ahead and write a script (python/shell) that access the API of encrypted source, parse it and send it to Splunk.&lt;/P&gt;&lt;P&gt;There is a python library to address this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/py-pgp/" target="_blank"&gt;https://pypi.org/project/py-pgp/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below code should be a starter for you&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import pgpy

emsg = pgpy.PGPMessage.from_file(&amp;lt;path to the file from the client that was encrypted using your public key&amp;gt;)
key,_  = pgpy.PGPKey.from_file(&amp;lt;path to your private key&amp;gt;)
with key.unlock(&amp;lt;your private key passpharase&amp;gt;):
    print (key.decrypt(emsg).message)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 16:53:09 GMT</pubDate>
    <dc:creator>ashish9433</dc:creator>
    <dc:date>2020-06-29T16:53:09Z</dc:date>
    <item>
      <title>how to input encrypted files like PGP encrypted files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-input-encrypted-files-like-PGP-encrypted-files/m-p/506549#M86234</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Does anyone know if there is any method in Splunk to index encrypted input files like&amp;nbsp;PGP encrypted files.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/139700"&gt;@ashish9433&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 15:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-input-encrypted-files-like-PGP-encrypted-files/m-p/506549#M86234</guid>
      <dc:creator>VSIRIS</dc:creator>
      <dc:date>2020-06-29T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to input encrypted files like PGP encrypted files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-input-encrypted-files-like-PGP-encrypted-files/m-p/506552#M86235</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;There is no direct way of onboarding encrypted data to Splunk. In case there is a requirement to do so, you can go ahead and write a script (python/shell) that access the API of encrypted source, parse it and send it to Splunk.&lt;/P&gt;&lt;P&gt;There is a python library to address this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/py-pgp/" target="_blank"&gt;https://pypi.org/project/py-pgp/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below code should be a starter for you&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import pgpy

emsg = pgpy.PGPMessage.from_file(&amp;lt;path to the file from the client that was encrypted using your public key&amp;gt;)
key,_  = pgpy.PGPKey.from_file(&amp;lt;path to your private key&amp;gt;)
with key.unlock(&amp;lt;your private key passpharase&amp;gt;):
    print (key.decrypt(emsg).message)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 16:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-input-encrypted-files-like-PGP-encrypted-files/m-p/506552#M86235</guid>
      <dc:creator>ashish9433</dc:creator>
      <dc:date>2020-06-29T16:53:09Z</dc:date>
    </item>
  </channel>
</rss>

