<?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: regex field extraction not from _raw in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680394#M232552</link>
    <description>&lt;P&gt;If the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command works perfectly then you should have a field called "folder" with the extracted data in it.&amp;nbsp; Is that what is happening?&amp;nbsp; If not, please describe how the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command is not acting as expected.&amp;nbsp; Note that the "folder" field will be present only within the query that extracted it.&amp;nbsp; If you need the field to be available to all queries then it will have to be extracted at index-time using a transform.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 13:22:03 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-03-12T13:22:03Z</dc:date>
    <item>
      <title>regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680391#M232550</link>
      <description>&lt;P&gt;hey guys&lt;BR /&gt;did someone ever happed to come through this problem. I'm using Splunk Cloud&amp;nbsp;&lt;BR /&gt;I'm trying to extract a new field using regex but the data are under the source filed&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rex field=source "Snowflake\/(?&amp;lt;folder&amp;gt;[^\/]+)"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;this is the regex I'm using when i use it in the search it works perfect. but the main goal is to save this search as a permanent field.&lt;BR /&gt;i know that the the field extraction draw from the "_raw" there is an option to direct the Cloud to pull from the source and save it a permanent field.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:02:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680391#M232550</guid>
      <dc:creator>tamir</dc:creator>
      <dc:date>2024-03-18T14:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680393#M232551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264492"&gt;@tamir&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to create a new field using the following syntax:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Snowflake\/(?&amp;lt;folder&amp;gt;[^\/]+) in source&lt;/LI-CODE&gt;&lt;P&gt;in few words you have to add "in" and the firld to use for the extraction.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 13:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680393#M232551</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-12T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680394#M232552</link>
      <description>&lt;P&gt;If the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command works perfectly then you should have a field called "folder" with the extracted data in it.&amp;nbsp; Is that what is happening?&amp;nbsp; If not, please describe how the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command is not acting as expected.&amp;nbsp; Note that the "folder" field will be present only within the query that extracted it.&amp;nbsp; If you need the field to be available to all queries then it will have to be extracted at index-time using a transform.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 13:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680394#M232552</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-12T13:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680502#M232590</link>
      <description>&lt;P&gt;hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; thanks for your replay.&lt;BR /&gt;It seems like the capture do not capture any of the fields i needed, I've tried to save it an even to play a bit with the syntax.&amp;nbsp; but still no success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="now.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29731iA81C92D2AF6A20A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="now.png" alt="now.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680502#M232590</guid>
      <dc:creator>tamir</dc:creator>
      <dc:date>2024-03-13T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680504#M232591</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; thanks for replay the | rex is working as it should the problem start when I'm trying to save the Regex. and this is cause by the fact i need to save the regex from the "source" field and no from the "_raw" field.&lt;BR /&gt;The main goal is to add another field in all searches without using the | rex command every time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680504#M232591</guid>
      <dc:creator>tamir</dc:creator>
      <dc:date>2024-03-13T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680514#M232596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264492"&gt;@tamir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;my solution is to save the extraction in an field extraction,&lt;/P&gt;&lt;P&gt;if you want to use the regex in a search, you have to add it to a search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| rex field=source "Snowflake\/(?&amp;lt;folder&amp;gt;[^\/]+)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680514#M232596</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-13T09:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680535#M232605</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you must use transforms to get this done.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create Field transformations on your app e.g.&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;get_directory_from_linux_audit_source&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Type regex-based&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Regular expression like:&amp;nbsp;/log/([^/]+)/&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Format: directory::$1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Source key: source&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Save and give needed permissions like app and roles which can use it&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Create Field&amp;nbsp;&lt;/SPAN&gt;extractions&amp;nbsp;&lt;OL&gt;&lt;LI&gt;Name: &amp;lt;what ever you want to call it&amp;gt;&lt;/LI&gt;&lt;LI&gt;Apply to: sourcetype named: e.g. linux_audit or what ever this is in your node&lt;/LI&gt;&lt;LI&gt;Type: Uses transforms&lt;/LI&gt;&lt;LI&gt;Extraction/Transforms: &amp;lt;from above like &lt;SPAN&gt;get_directory_from_linux_audit_source&amp;gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Save and give needed permission like above&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Wait that this will be applied to all needed places on SCP&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Use it like:&amp;nbsp;index=&amp;lt;your index&amp;gt; sourcetype=&amp;lt;your sourcetype&amp;gt; &amp;lt;Your field name&amp;gt;=*&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;r. Ismo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/680535#M232605</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-13T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/681026#M232739</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp; hey thanks for the replay.&amp;nbsp;&lt;BR /&gt;I've been trying to create the following two you shared, but somehow i still don't see the the field in the field section I'm sharing the process I've taking.&amp;nbsp;&lt;BR /&gt;let me know if I'm missing something.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-18 144252.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29781i8379E3540A936684/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-03-18 144252.png" alt="Screenshot 2024-03-18 144252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-18 144308.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29780i372909A976A05CC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-03-18 144308.png" alt="Screenshot 2024-03-18 144308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 12:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/681026#M232739</guid>
      <dc:creator>tamir</dc:creator>
      <dc:date>2024-03-18T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction not from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/681035#M232742</link>
      <description>Are you sure that your transformation's name is same on both places (e.g. sonw vs snow etc.)?</description>
      <pubDate>Mon, 18 Mar 2024 13:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-not-from-raw/m-p/681035#M232742</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-18T13:54:27Z</dc:date>
    </item>
  </channel>
</rss>

