<?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 help on rex command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544504#M154227</link>
    <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field sounds like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;03/01/2019 07:10 0 MBAM CLIENT (2.5_64b) EN.$w$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need to catch everything after&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;03/01/2019 07:10 0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it means I just need :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;03/01/2019 07:10 0 MBAM CLIENT (2.5_64b) EN.$w$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you help me please??&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 13:29:45 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2021-03-19T13:29:45Z</dc:date>
    <item>
      <title>help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544504#M154227</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field sounds like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;03/01/2019 07:10 0 MBAM CLIENT (2.5_64b) EN.$w$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need to catch everything after&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;03/01/2019 07:10 0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it means I just need :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;03/01/2019 07:10 0 MBAM CLIENT (2.5_64b) EN.$w$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you help me please??&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 13:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544504#M154227</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-19T13:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544505#M154228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to catch all after the string "03/01/2019 07:10 0 ", please, try this regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\d+\/\d+\/\d+\s+\d+:\d+\s\d+\s+(?&amp;lt;your_field&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/lxl2sg/1" target="_blank"&gt;https://regex101.com/r/lxl2sg/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 13:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544505#M154228</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-19T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544511#M154232</link>
      <description>&lt;P&gt;it works fine in regex101 but not in my search&lt;/P&gt;&lt;P&gt;here is what i am doing :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=toto sourcetype="flags" 
| rex field1="\d+\/\d+\/\d+\s+\d+:\d+\s\d+\s+(?&amp;lt;field1&amp;gt;.*)" 
| table field1&lt;/LI-CODE&gt;&lt;P&gt;is there something wrong??&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 14:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544511#M154232</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-19T14:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544535#M154236</link>
      <description>&lt;P&gt;You don't need field1=, rex defaults to matching against _raw.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 16:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544535#M154236</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-19T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544544#M154239</link>
      <description>&lt;P&gt;It doesnt works even if i dont do field1=&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 16:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544544#M154239</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-19T16:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544568#M154244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you please share your _raw data using a screenshot ? There should be a difference on your data with your sample.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 20:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/544568#M154244</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-19T20:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545078#M154351</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cjoint.com/c/KCyi0QPTiJb" target="_blank" rel="noopener"&gt;https://www.cjoint.com/c/KCyi0QPTiJb&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 08:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545078#M154351</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-24T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545081#M154352</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\d+\/\d+\/\d+\s+\d+:\d+\s+\d+\s+(?&amp;lt;field&amp;gt;.*)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Mar 2021 09:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545081#M154352</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-24T09:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545114#M154369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes: the rex command has a different syntax:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\d+\/\d+\/\d+\s+\d+:\d+\s\d+\s+(?&amp;lt;your_field&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;You haven't to add "field1=" before the regex.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 12:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545114#M154369</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-24T12:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545131#M154371</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I think I am not speaking clearly&lt;/P&gt;&lt;P&gt;I need to extract the field yellow in the screenshot and to call him "software"&amp;nbsp;&lt;A href="https://www.cjoint.com/c/KCynsMbuF2b" target="_blank" rel="noopener"&gt;https://www.cjoint.com/c/KCynsMbuF2b&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I dont understand is that when I try to extract the field manually with a regex method, all the lines have disappeared except the first which begins by "Microsoft Windows..."&lt;/P&gt;&lt;P&gt;so I can use you regex because "your_field" doesnt exists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545131#M154371</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-24T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545135#M154372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry but I don't understand the problem:&lt;/P&gt;&lt;P&gt;did you tried my regex (the one I hinted not the one you used) replacing your_field with software?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\d+\/\d+\/\d+\s+\d+:\d+\s\d+\s+(?&amp;lt;software&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;If it's not running in your Splunk, what's your result?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545135#M154372</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-24T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545137#M154373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rex field=_raw "&lt;SPAN&gt;&lt;BR /&gt;\d+\/\d+\/\d+\s\d+:\d+\s\d\s(?P&amp;lt;Field&amp;gt;[^\s*][A-Za-z0-9\s()._$]*)&lt;/SPAN&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545137#M154373</guid>
      <dc:creator>abhijeet01</dc:creator>
      <dc:date>2021-03-24T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545144#M154376</link>
      <description>&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;The regex dont works because I dont succeed to extract this field properly....&lt;/P&gt;&lt;P&gt;When I am doing an field extraction, I cath the field, I called him "software" but at the end of the extraction, all the line have disappeared...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545144#M154376</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-24T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545146#M154377</link>
      <description>&lt;P&gt;Have you tried this - it is subtly different from the other rex strings because it takes into account multiple white-space characters in all instances - these are apparent in your screenshot.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545146#M154377</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-24T14:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545159#M154381</link>
      <description>&lt;P&gt;Like I said, the first problem I have is to extract these field&lt;/P&gt;&lt;P&gt;You can see here the sourcetype config&amp;nbsp;&amp;nbsp;&lt;A href="https://www.cjoint.com/c/KCyoNqARbmb" target="_blank" rel="noopener"&gt;https://www.cjoint.com/c/KCyoNqARbmb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After this, I try to extract the field with the field extractor&amp;nbsp; I need but it doenst works and i dont understand why&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545159#M154381</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-24T14:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545168#M154382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your linebreaker problem seems because of timestamps. It assumes %m-%d-%Y but it %d-%m-%Y&lt;/P&gt;&lt;P&gt;Please try changing your TIME_FORMAT to Advanced and use below format;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%d-%m-%Y %H:%M&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 15:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545168#M154382</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-24T15:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545182#M154389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please check if the data you share are correct, because, using your data it runs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="03/01/2019 07:10 0 MBAM CLIENT (2.5_64b) EN.$w"
| rex "\d+\/\d+\/\d+\s+\d+:\d+\s\d+\s+(?&amp;lt;software&amp;gt;.*)"
| table software&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 16:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545182#M154389</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-24T16:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: help on rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545312#M154434</link>
      <description>&lt;P&gt;yes like this it works fine&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 09:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-rex-command/m-p/545312#M154434</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-03-25T09:50:42Z</dc:date>
    </item>
  </channel>
</rss>

