<?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: Cleaning raw data at index time or search time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cleaning-raw-data-at-index-time-or-search-time/m-p/39712#M9089</link>
    <description>&lt;P&gt;After fighting with the regex more, I realized I wasn't replacing the final '.' from the domain name thus not getting any matches against my look up table.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval $name$=replace($name$, "\(\d+\)",".")|eval $name$=replace($name$, "^\.|$\.", "")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Feb 2013 13:27:01 GMT</pubDate>
    <dc:creator>aapittts</dc:creator>
    <dc:date>2013-02-22T13:27:01Z</dc:date>
    <item>
      <title>Cleaning raw data at index time or search time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cleaning-raw-data-at-index-time-or-search-time/m-p/39711#M9088</link>
      <description>&lt;P&gt;I have raw data that looks like this: &lt;CODE&gt;(4)example(3)domain(3)com(0)&lt;/CODE&gt;. In my search, I've been using a macro that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval $name$=replace($name$, "\(\d+\)",".")|eval $name$=replace($name$, "^\.", "")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This produces the desired result. However, when I try and pipe the output of the macro to a lookup table it doesn't work. I've narrowed the issue down to the regex bc if I put the example domain above in my lookup table I get the proper results. That is not the solution bc I have hundreds of domains in the lookup table and can not change them all. So my question is is there a way to pass the output of the regex properly or is this something that needs to be taken care of in the props or transforms?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 21:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cleaning-raw-data-at-index-time-or-search-time/m-p/39711#M9088</guid>
      <dc:creator>aapittts</dc:creator>
      <dc:date>2013-02-21T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning raw data at index time or search time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cleaning-raw-data-at-index-time-or-search-time/m-p/39712#M9089</link>
      <description>&lt;P&gt;After fighting with the regex more, I realized I wasn't replacing the final '.' from the domain name thus not getting any matches against my look up table.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval $name$=replace($name$, "\(\d+\)",".")|eval $name$=replace($name$, "^\.|$\.", "")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2013 13:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cleaning-raw-data-at-index-time-or-search-time/m-p/39712#M9089</guid>
      <dc:creator>aapittts</dc:creator>
      <dc:date>2013-02-22T13:27:01Z</dc:date>
    </item>
  </channel>
</rss>

