<?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: Extracting Attachments in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652394#M225491</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked really well! Thank you very much for your assistance!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 15:34:03 GMT</pubDate>
    <dc:creator>treven</dc:creator>
    <dc:date>2023-07-28T15:34:03Z</dc:date>
    <item>
      <title>How can I extract attachments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652371#M225481</link>
      <description>&lt;P&gt;I am attempting to extract attachment fields from our email logs using regex. Attachments like .jpg, .png, pdf, etc. I have gone through the process of using the SPL field extracting feature however it usually results in only one attachment type being selected or another, if I try and select other attachment types the extraction fails. Any suggestions would be greatly appreciated. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 16:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652371#M225481</guid>
      <dc:creator>treven</dc:creator>
      <dc:date>2023-07-28T16:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652372#M225482</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259153"&gt;@treven&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I suppose that you're speaking to extract the file name of the attachment, not the attachment file itself!&lt;/P&gt;&lt;P&gt;Anyway, the field extraction should already be present in the Add-On you're using, if not, please share a sample of your logs, highlighting in bold the data to extract.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652372#M225482</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-28T13:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652374#M225484</link>
      <description>&lt;P&gt;Yes that is correct I am just looking to monitor the various types of attachment types. As I stated in my post, the field extracting feature is only allowing one type of attachment. It will only extract .jpg fields and will ignore pdf or png. If I try to add another by selecting it in an event, I will get an error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652374#M225484</guid>
      <dc:creator>treven</dc:creator>
      <dc:date>2023-07-28T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652375#M225485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259153"&gt;@treven&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;ok, could you share a sample (in text format) of your logs (eventually masking data)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652375#M225485</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-28T13:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652376#M225486</link>
      <description>&lt;P&gt;Yeah absolutely, I will post it soon. Thanks for your assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652376#M225486</guid>
      <dc:creator>treven</dc:creator>
      <dc:date>2023-07-28T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652391#M225488</link>
      <description>&lt;DIV&gt;So,&amp;nbsp;I was able to get the field extractor to do both png and jpg but any other selected field results in an error. I suppose I could create separate&amp;nbsp;fields and use eval to somewhat accomplish what I am looking for.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here are some examples:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;date=2023-07-28 time=09:00:22.791 device_id=10000&amp;nbsp;log_id=000123&amp;nbsp;type=spam subtype=default pri=information &amp;nbsp;session_id="1138-7644" client_name="" client_ip="1.1.1.1" dst_ip="1.1.1.1" from="email" to="email" subject="TITLE" msg="Antispam identified spam URL: &lt;A href="http://website.jpg" target="_blank" rel="noopener"&gt;http://website.jpg&lt;/A&gt;"&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;date=2023-07-28 time=08:51:25.640 device_id=02222&amp;nbsp;log_id=00023&amp;nbsp;type=virus subtype=sandbox pri=information &amp;nbsp;from="" to="" client_name="" client_ip="" session_id="1000-0322" msg="File file.pdf has been sent to Sandbox"&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652391#M225488</guid>
      <dc:creator>treven</dc:creator>
      <dc:date>2023-07-28T15:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652392#M225489</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259153"&gt;@treven&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;maybe this regex could work for you:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;file&amp;gt;\w+\.(jpg|pdf|png))"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/ol040L/1" target="_blank"&gt;https://regex101.com/r/ol040L/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652392#M225489</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-28T15:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652393#M225490</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did it! Thank you very much for your assistance with this!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652393#M225490</guid>
      <dc:creator>treven</dc:creator>
      <dc:date>2023-07-28T15:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Attachments</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652394#M225491</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked really well! Thank you very much for your assistance!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-attachments/m-p/652394#M225491</guid>
      <dc:creator>treven</dc:creator>
      <dc:date>2023-07-28T15:34:03Z</dc:date>
    </item>
  </channel>
</rss>

