<?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: search time field extractions using props for an Indexed field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116060#M24238</link>
    <description>&lt;P&gt;Does this create a field &lt;CODE&gt;foo&lt;/CODE&gt; with none of the colons, dashes or dots?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-foo = replace(CALLING_STATION_ID,"([-:\.])","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Nov 2014 17:03:57 GMT</pubDate>
    <dc:creator>aweitzman</dc:creator>
    <dc:date>2014-11-12T17:03:57Z</dc:date>
    <item>
      <title>search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116059#M24237</link>
      <description>&lt;P&gt;Hello Experts,&lt;BR /&gt;
We have a field xyz which holds mac addresses. Problem is, some of the mac addresses are of xx:xx:xx:xx:xx:xx format and some are xxxx.xxxx.xxxx  &amp;amp; xx-xx-xx-xx-xx-xx &amp;amp; xxxx-xxxx-xxxx-xxxx (Every weirdest pattern you can imagine). We used &lt;BR /&gt;
rex field=_raw mode=sed s/[-|.|:]//g to make it all numbers. I know Props.conf documentation reads, SEDCMD is only used at index time. Is there any other alternative procedures you recommend. &lt;BR /&gt;
I tried EVAL-foo = replace(CALLING_STATION_ID,":*","") in props.conf to no avail. &lt;BR /&gt;
Thanks in advance.&lt;/P&gt;

&lt;P&gt;Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116059#M24237</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2020-09-28T18:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116060#M24238</link>
      <description>&lt;P&gt;Does this create a field &lt;CODE&gt;foo&lt;/CODE&gt; with none of the colons, dashes or dots?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-foo = replace(CALLING_STATION_ID,"([-:\.])","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116060#M24238</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-12T17:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116061#M24239</link>
      <description>&lt;P&gt;Tried, didn't work.&lt;BR /&gt;
EVAL-MACID = replace(CALLING_STATION_ID,"([-:.])","") in props.conf, restarted splunk and MACID is not in there.&lt;BR /&gt;
Also tried ...=replace(CALLING_STATION_ID,"([-|:|.])",""), no luck here either.&lt;BR /&gt;
Any different route you recommend?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116061#M24239</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2020-09-28T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116062#M24240</link>
      <description>&lt;P&gt;Is &lt;CODE&gt;CALLING_STATION_ID&lt;/CODE&gt; a field in the actual data, or is it a generated field (with a different &lt;CODE&gt;EVAL-&lt;/CODE&gt; or &lt;CODE&gt;FIELDALIAS-&lt;/CODE&gt; entry in &lt;CODE&gt;props.conf&lt;/CODE&gt;)? It won't work if it's a generated field.&lt;/P&gt;

&lt;P&gt;I did what I proposed above and it worked, so I'm not sure what might be going on in your environment. Can you try with just a colon within the brackets and see if it at least does that?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116062#M24240</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-12T18:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116063#M24241</link>
      <description>&lt;P&gt;CALLING_STATION_ID is a field in the actual data. Example log&lt;BR /&gt;
        XXXXXXXXX= S13456&lt;BR /&gt;
            PORT-ID = 1//1/1/1&lt;BR /&gt;
        FRAMED-IP = 1.2.3.4&lt;BR /&gt;
        NAS-PORT-TYPE = 5&lt;BR /&gt;
        CALLING-STATION-ID = 12:ae:45:y2:35:3d&lt;BR /&gt;
        NAS-IP-ADDRESS = x.y.x.xy&lt;BR /&gt;
And is extracted by splunk at the index time.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116063#M24241</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2020-09-28T18:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116064#M24242</link>
      <description>&lt;P&gt;Do you see any errors regarding the &lt;CODE&gt;MACID&lt;/CODE&gt; field in &lt;CODE&gt;splunkd.log&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 19:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116064#M24242</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-12T19:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116065#M24243</link>
      <description>&lt;P&gt;This is what i found in the logs  :'EVAL-foo' in stanza [aaa]: The expression is malformed. An unexpected character is reached at '”:”,””)'.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 22:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116065#M24243</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2014-11-12T22:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116066#M24244</link>
      <description>&lt;P&gt;Could you please post me your props stanza and sample log you created to replicate this? I want to see where the heck i am doing wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 01:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116066#M24244</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2014-11-13T01:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116067#M24245</link>
      <description>&lt;P&gt;Here's the run-anywhere example based on the props stanza, just to prove that the regex is correct:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 
| eval CALLING_STATION_ID="123-456-789,12:34:56:78,12.345.6789,12.34:56-78" 
| makemv delim="," CALLING_STATION_ID 
| mvexpand CALLING_STATION_ID 
| eval MACID = replace(CALLING_STATION_ID,"([-:\.])","") 
| table CALLING_STATION_ID MACID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you take that exact &lt;CODE&gt;replace&lt;/CODE&gt; string (hyphen must be first inside the brackets, and there must be a backslash prior to the period) and put it in props.conf like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-MACID = replace(CALLING_STATION_ID,"([-:\.])","")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it should work the same way. I also tested this props line on similar actual data in my environment and it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 13:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116067#M24245</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-13T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116068#M24246</link>
      <description>&lt;P&gt;Thanks a ton @aweitzman. Culprit here is me, just realized that my config file reads "props.confs". &lt;BR /&gt;
See if you can throw a punch at my face through your next comment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 15:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116068#M24246</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2014-11-13T15:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: search time field extractions using props for an Indexed field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116069#M24247</link>
      <description>&lt;P&gt;Ha! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Happens to the best of us. Glad it's working now.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 15:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-time-field-extractions-using-props-for-an-Indexed-field/m-p/116069#M24247</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-11-13T15:12:28Z</dc:date>
    </item>
  </channel>
</rss>

