<?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: Translation from rex to IFX or props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42323#M7858</link>
    <description>&lt;P&gt;TotalCabinets is already extracted and exist, I need to extract TotalCabinetNbr&lt;/P&gt;

&lt;P&gt;TotalCabinets is like "Total Cabinets:293" and i need&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2013 20:39:21 GMT</pubDate>
    <dc:creator>royimad</dc:creator>
    <dc:date>2013-08-21T20:39:21Z</dc:date>
    <item>
      <title>Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42321#M7856</link>
      <description>&lt;P&gt;I have the following query and i would like to preserve the extraction and not calling this extraction each time on a search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=TotalCabinets "(?&amp;lt;DescriptionTotal&amp;gt;.*):(?&amp;lt;TotalCabinetsNbr&amp;gt;.*)" | table ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do i preserve "save" this extraction without calling it each time on my query, what is the translation of this query on Interactive field extraction or on props.conf?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42321#M7856</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T20:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42322#M7857</link>
      <description>&lt;P&gt;Whcih is the field you want TotalCabinets or TotalCabinetsNbr?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42322#M7857</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-08-21T20:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42323#M7858</link>
      <description>&lt;P&gt;TotalCabinets is already extracted and exist, I need to extract TotalCabinetNbr&lt;/P&gt;

&lt;P&gt;TotalCabinets is like "Total Cabinets:293" and i need&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42323#M7858</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T20:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42324#M7859</link>
      <description>&lt;P&gt;I need 293 the value wich is TotalCabinetNbr&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42324#M7859</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42325#M7860</link>
      <description>&lt;P&gt;I'm not sure if you can extract information from another field if you extract that first field in the same props.conf file. Is that the case here?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:55:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42325#M7860</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-08-21T20:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42326#M7861</link>
      <description>&lt;P&gt;Assuming you have single-line events;&lt;BR /&gt;
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
EXTRACT-blah = (?m)Total\sCabinets:(?&amp;lt;TotalCabinetsNbr&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;ought to work. If it doesn't, please post some sample events.&lt;/P&gt;

&lt;P&gt;Note: Edited for multiline logs and the extra space.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42326#M7861</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-21T20:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42327#M7862</link>
      <description>&lt;P&gt;In my example below you see that the field is extracted straight from the event text. Not based off an extracted field.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42327#M7862</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-21T20:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42328#M7863</link>
      <description>&lt;P&gt;There are space between Total and Cabinets , &lt;BR /&gt;
can i use &lt;CODE&gt;EXTRACT-blah = "Total Cabinets:"(?&amp;lt;TotalCabinetsNbr&amp;gt;\d+) ?&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 21:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42328#M7863</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42329#M7864</link>
      <description>&lt;P&gt;Here is an example event:&lt;BR /&gt;
Date = "20-Aug-2013 08:32:10 -0400"&lt;BR /&gt;
From = "Roy Imad &lt;A href="mailto:roy.imad@company.com"&gt;roy.imad@company.com&lt;/A&gt;"&lt;BR /&gt;
To = "Roy Imad &lt;A href="mailto:roy.imad@company.com"&gt;roy.imad@company.com&lt;/A&gt;"&lt;BR /&gt;
Subject = "FW: [POSMonitor R1.5.1.0] DCPMonitor Inspection Summary"&lt;BR /&gt;
mailbox = "splunk"&lt;BR /&gt;
size = 12691&lt;BR /&gt;
____________________  Message Body  ____________________&lt;/P&gt;

&lt;P&gt;DCPMonitor REPORT - Tue, Aug 20, 2013 at 00:00&lt;/P&gt;

&lt;P&gt;Total Cabinets: 152, Offline Cabinets: 6&lt;BR /&gt;
XPOS10027 - St ZZZZZZ Hospital of XXXXX - Cath Lab - Cath Room&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 21:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42329#M7864</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T21:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Translation from rex to IFX or props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42330#M7865</link>
      <description>&lt;P&gt;Apart from the edited regex above, you could also try (if TotalCabinets is already extracted).&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-blah = some_regex in source_field&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Haven't really played with that, but I assume that all 'in source_field' extractions take place after those that work on &lt;CODE&gt;_raw&lt;/CODE&gt;. See the EXTRACT section of the props.conf docs.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Translation-from-rex-to-IFX-or-props-conf/m-p/42330#M7865</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T14:37:21Z</dc:date>
    </item>
  </channel>
</rss>

