<?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: rex with datamodel in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530436#M9507</link>
    <description>&lt;P&gt;One you have results from the datamodel, use the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command on those results the same way you would use it on any other result set.&amp;nbsp; You will not have a _raw field so the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command must specify a field name&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2020 14:29:54 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-11-23T14:29:54Z</dc:date>
    <item>
      <title>rex with datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530293#M9504</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;i'm wondering if it is possible to use rex command with datamodel without declaring attributes for every rex field i want (i have lots of them )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 16:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530293#M9504</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-11-21T16:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: rex with datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530308#M9505</link>
      <description>&lt;P&gt;Please say more about what you want to do.&amp;nbsp; Do you want to use the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command inside a datamodel or use the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command on the results returned by a DM?&lt;/P&gt;&lt;P&gt;If the former then you don't need &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;.&amp;nbsp; When you add a field to the DM, choose "regular expression" and enter your regex string.&amp;nbsp; The fields you define in the regex (using named capture groups) will become fields in the DM.&lt;/P&gt;&lt;P&gt;If the latter then, yes, you can.&lt;/P&gt;&lt;P&gt;Be aware that more fields in a DM equates to more storage needed to store the results if the DM is accelerated.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 21:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530308#M9505</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-21T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: rex with datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530309#M9506</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply&lt;/P&gt;&lt;P&gt;yes, im referring to the second option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you show me an example of how can i do it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 21:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530309#M9506</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-11-21T21:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: rex with datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530436#M9507</link>
      <description>&lt;P&gt;One you have results from the datamodel, use the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command on those results the same way you would use it on any other result set.&amp;nbsp; You will not have a _raw field so the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command must specify a field name&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530436#M9507</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-23T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: rex with datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530437#M9508</link>
      <description>&lt;P&gt;yeah, so, i need the rex to run with _raw&lt;BR /&gt;for example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex field=_raw "TTY=(?&amp;lt;dstuser&amp;gt;.*) ; PWD=(?&amp;lt;url&amp;gt;.*); USER=(?&amp;lt;srcuser&amp;gt;.*) ; COMMAND=(?&amp;lt;status&amp;gt;.*)" | where isnotnull(dstuser) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what replacing the _raw after the datamodel is working ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:35:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-with-datamodel/m-p/530437#M9508</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2020-11-23T14:35:04Z</dc:date>
    </item>
  </channel>
</rss>

