<?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: Erex in #Random</title>
    <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576635#M1391</link>
    <description>&lt;P&gt;So, I have multiple false and trues back to back and each one has a different meaning. I am trying to create fields for each one. For example, the first true/false =indicates if OAM is managed on computer, second true/false = is computer disabled. The way the results populate after indexing are literally &lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;,, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, , &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 16:28:25 GMT</pubDate>
    <dc:creator>GuillermoRamos</dc:creator>
    <dc:date>2021-11-29T16:28:25Z</dc:date>
    <item>
      <title>How do I use erex to create fields?</title>
      <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576633#M1389</link>
      <description>&lt;P&gt;How can I erex a line &lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;,, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, , &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;&amp;nbsp; source =" an imported CSV" the multiple true and false on the line have different column names. I am trying to create a label for each true and false following a reference sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576633#M1389</guid>
      <dc:creator>GuillermoRamos</dc:creator>
      <dc:date>2022-03-10T16:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Erex</title>
      <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576634#M1390</link>
      <description>&lt;P&gt;What problem are you trying to solve?&amp;nbsp; Chances are, &lt;FONT face="courier new,courier"&gt;erex&lt;/FONT&gt; is not the answer (it almost never is), but we need to know what it is you are trying to do.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 16:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576634#M1390</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-29T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Erex</title>
      <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576635#M1391</link>
      <description>&lt;P&gt;So, I have multiple false and trues back to back and each one has a different meaning. I am trying to create fields for each one. For example, the first true/false =indicates if OAM is managed on computer, second true/false = is computer disabled. The way the results populate after indexing are literally &lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;,, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, , &lt;SPAN class=""&gt;FALSE&lt;/SPAN&gt;, &lt;SPAN class=""&gt;FALSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 16:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576635#M1391</guid>
      <dc:creator>GuillermoRamos</dc:creator>
      <dc:date>2021-11-29T16:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Erex</title>
      <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576640#M1392</link>
      <description>&lt;P&gt;There are a couple of ways to do that.&lt;/P&gt;&lt;P&gt;You can use &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; at search time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo
| rex "(?&amp;lt;OAM&amp;gt;\w+), (?&amp;lt;disabled&amp;gt;\w+), (?&amp;lt;field3&amp;gt;\w+), (?&amp;lt;field4&amp;gt;\w+), (?&amp;lt;field5&amp;gt;\w+), (?&amp;lt;field6&amp;gt;\w+), (?&amp;lt;field7&amp;gt;\w+), (?&amp;lt;field8&amp;gt;\w+)"
| table OAM, disabled field3 field4 field5 field6 field7 field8&lt;/LI-CODE&gt;&lt;P&gt;Other way is parse it at index-time using a REGEX in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[parseflags]
REGEX = (\w+), (\w+), (\w+), (\w+), (\w+), (\w+), (\w+), (\w+)
FORMAT = OAM::$1 disabled::$2 field3::$3 field4::$4 field5::$5 field6::$6 field7::$7 field8::$8&lt;/LI-CODE&gt;&lt;P&gt;Then invoke that transform in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANFORM-parse = parseflags&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576640#M1392</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-29T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Erex</title>
      <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576646#M1393</link>
      <description>&lt;P&gt;That worked. Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 18:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576646#M1393</guid>
      <dc:creator>GuillermoRamos</dc:creator>
      <dc:date>2021-11-29T18:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Erex</title>
      <link>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576656#M1394</link>
      <description>&lt;P&gt;Which method did you use?&lt;/P&gt;&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 20:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/How-do-I-use-erex-to-create-fields/m-p/576656#M1394</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-29T20:19:11Z</dc:date>
    </item>
  </channel>
</rss>

