<?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: Filtering out part of a value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620259#M215613</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240781"&gt;@NizanCohen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand, are you speaking to replace "[9999]action" with "999action"?&lt;/P&gt;&lt;P&gt;do you mean at search time or at index time?&lt;/P&gt;&lt;P&gt;If at search time, you could use the rex command.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 12:04:54 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-11-09T12:04:54Z</dc:date>
    <item>
      <title>Filtering out part of a value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620257#M215612</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;
&lt;P&gt;I'm working with a FTP server which include a session number with each status and I wish to exclude the session number to be separate value to use later.&lt;/P&gt;
&lt;P&gt;Example of the fields are:&lt;/P&gt;
&lt;P&gt;[12345156]quit&lt;/P&gt;
&lt;P&gt;[14365361]pass&lt;/P&gt;
&lt;P&gt;I tried using replace "[*]" with * in cs_status but it won't remove the session number (inside the [] is the session number).&lt;/P&gt;
&lt;P&gt;Basic search query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"index=application sourcetype=FTPlogs"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the assistance!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620257#M215612</guid>
      <dc:creator>NizanCohen</dc:creator>
      <dc:date>2022-11-09T15:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out part of a value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620259#M215613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240781"&gt;@NizanCohen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand, are you speaking to replace "[9999]action" with "999action"?&lt;/P&gt;&lt;P&gt;do you mean at search time or at index time?&lt;/P&gt;&lt;P&gt;If at search time, you could use the rex command.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 12:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620259#M215613</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-09T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out part of a value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620275#M215618</link>
      <description>&lt;P&gt;I prefer making the session a separate field.&lt;/P&gt;&lt;P&gt;If possible without the []&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620275#M215618</guid>
      <dc:creator>NizanCohen</dc:creator>
      <dc:date>2022-11-09T13:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out part of a value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620283#M215621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240781"&gt;@NizanCohen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes you can do it, you need a regex, could you share a sample of your logs?&lt;/P&gt;&lt;P&gt;it should be something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=your_field "^\[(?&amp;lt;session&amp;gt;\d+)\]"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620283#M215621</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-09T13:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out part of a value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620284#M215622</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Here's an example of two fields:&lt;/P&gt;&lt;P&gt;[1153909]type&lt;BR /&gt;[1168228]created&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620284#M215622</guid>
      <dc:creator>NizanCohen</dc:creator>
      <dc:date>2022-11-09T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out part of a value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620299#M215632</link>
      <description>&lt;P&gt;I managed to resolve it by using "extract new fields" and simply selected an example of each desired field and Splunk made the regex and the fields for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620299#M215632</guid>
      <dc:creator>NizanCohen</dc:creator>
      <dc:date>2022-11-09T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering out part of a value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620370#M215652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240781"&gt;@NizanCohen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, bu anyway I hint to learn to build your regexes by yourself because they are very much useful!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 07:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-out-part-of-a-value/m-p/620370#M215652</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-10T07:22:21Z</dc:date>
    </item>
  </channel>
</rss>

