<?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: Extraction of an indexed field in summary indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/95999#M24772</link>
    <description>&lt;P&gt;Have a look at the following blog post, which probably describes your problem and its solution.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2011/10/07/cannot-search-based-on-an-extracted-field/"&gt;http://blogs.splunk.com/2011/10/07/cannot-search-based-on-an-extracted-field/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2012 18:19:49 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-07-11T18:19:49Z</dc:date>
    <item>
      <title>Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/95998#M24771</link>
      <description>&lt;P&gt;I'm having a field that is being specifically indexed (and not extracted during search time).&lt;BR /&gt;
The following configuration is used:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
TRANSFORMS-bla = indexex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexex]
REGEX = ^(\d+)
FORMAT = MYFIELD::$1
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MYFIELD]
INDEXED = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This all works fine in normal indexes. However, I'm creating a summary index that contains the same field, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex *searchsomething* | table something MYFIELD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is also indexed fine, however I cannot search by MYFIELD directly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summaryindex MYFIELD=something
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;yields 0 results. This works though:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summaryindex | search MYFIELD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried adding an indexed field for the stash sourcetype but it didn't help.&lt;BR /&gt;
Is this an issue due to the field being indexed (and fields.conf applied globally)?&lt;BR /&gt;
Do I have to change the field name (searching through summaryindex for other fields works, it doesn't work only for this field).&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 17:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/95998#M24771</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-07-11T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/95999#M24772</link>
      <description>&lt;P&gt;Have a look at the following blog post, which probably describes your problem and its solution.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2011/10/07/cannot-search-based-on-an-extracted-field/"&gt;http://blogs.splunk.com/2011/10/07/cannot-search-based-on-an-extracted-field/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 18:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/95999#M24772</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-11T18:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96000#M24773</link>
      <description>&lt;P&gt;Unfortunately this doesn't help - I have MYFIELD in fields.conf as indexed (since I have to extract it separately, it's a subtoken).&lt;/P&gt;

&lt;P&gt;So I cannot add MYFIELD INDEXED = false there as fields.conf appears to be global &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 19:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96000#M24773</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-07-11T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96001#M24774</link>
      <description>&lt;P&gt;Wait, if you're summary indexing, could you show what the summary indexing events look like? I imagine they should have MYFIELD=somevalue in there, no?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 19:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96001#M24774</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-11T19:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96002#M24775</link>
      <description>&lt;P&gt;I extract it - for example, I have a log such as this:&lt;/P&gt;

&lt;P&gt;2012-07-11 01020032300404&lt;/P&gt;

&lt;P&gt;Where this is actually couple of variables so I extract them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = ^[^\s]+\s(.)(....)
FORMAT = SOMEFIELD::$1 MYFIELD::$2
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used index time extraction here - and I create the same field that I use later in summary. I guess this is the problem, I could rename the field but since I already have tons of summary-indexed stuff I was wondering if there is a way to get Splunk to recognize this.&lt;/P&gt;

&lt;P&gt;I presume Splunk tries to find that same field as indexed field and fails.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96002#M24775</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-07-11T20:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96003#M24776</link>
      <description>&lt;P&gt;No I mean what does the event in the summary index look like? Or is that it?&lt;/P&gt;

&lt;P&gt;Also, not that it takes us closer to a solution, but why are you making this an indexed field rather than something that's extracted at search-time? It's very rarely a good idea.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96003#M24776</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-11T20:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96004#M24777</link>
      <description>&lt;P&gt;What I showed is the original log. In the summary index, it looks like this:&lt;/P&gt;

&lt;P&gt;2012-07-11 &lt;EM&gt;summaryindexstuff&lt;/EM&gt; BLA=11, SOMETHING=12, MYFIELD=10203&lt;/P&gt;

&lt;P&gt;I needed to index it separately because it's a subtoken and I'm having a huge amount of logs. The logs are ugly and not space (or anything) delimited - they just contain concatenated numbers/letters.&lt;/P&gt;

&lt;P&gt;That first part works great, it's fast etc. But I guess I made a mistake not renaming this one field in summary index. In example below, search works fine for other fields (i.e. BLA and SOMETHING), just doesn't work for MYFIELD.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96004#M24777</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-07-11T20:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction of an indexed field in summary indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96005#M24778</link>
      <description>&lt;P&gt;Yeah since you put &lt;CODE&gt;INDEXED = true&lt;/CODE&gt; I'm pretty sure there's no good workaround other than renaming the field in the summary index.&lt;/P&gt;

&lt;P&gt;I'm still not sure I understand why you really need to have it as an indexed field - did you actually try to have it extracted in search-time and compare performance? My guess is performance would be just as good, and possibly even better, with a search-time extracted field.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-of-an-indexed-field-in-summary-indexes/m-p/96005#M24778</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-11T20:17:36Z</dc:date>
    </item>
  </channel>
</rss>

