<?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 by Field's Value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119777#M32143</link>
    <description>&lt;P&gt;Having trouble understanding this. Do I need the user="john.doe" part? Why does this need to be done as a subsearch?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2014 13:04:50 GMT</pubDate>
    <dc:creator>edschembor</dc:creator>
    <dc:date>2014-06-26T13:04:50Z</dc:date>
    <item>
      <title>Search by Field's Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119773#M32139</link>
      <description>&lt;P&gt;So I have a search where I need to further search by the value of the field.&lt;/P&gt;

&lt;P&gt;ie) &lt;BR /&gt;
| eval EPHID = "EPH1406180001103"&lt;BR /&gt;
| search EPHID&lt;/P&gt;

&lt;P&gt;Searches for logs with "EPHID" and not "EPH1406180001103". Is there some way to search for the field's value and not the field?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 14:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119773#M32139</guid>
      <dc:creator>edschembor</dc:creator>
      <dc:date>2014-06-25T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search by Field's Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119774#M32140</link>
      <description>&lt;P&gt;Try the following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval EPHID = "EPH1406180001103"&lt;BR /&gt;
| where like(_raw,"%".EPHID."%")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 15:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119774#M32140</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-06-25T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search by Field's Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119775#M32141</link>
      <description>&lt;P&gt;Use a subsearch. Using your example as a starting point:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[| gentimes start=-1 | eval EPHID="EPH1406180001103" | rename EPHID as query | fields query ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Presumably your search is more complex than your example. If you have a search that results in EPHID having one or more values, then the gentimes stanza will not be needed; replace gentimes and eval with that search instead. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search user="john.doe" | rename host as query | fields query]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will search for events with user "john.doe", get the host field from these, then search for that value in everything.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119775#M32141</guid>
      <dc:creator>davby</dc:creator>
      <dc:date>2014-06-25T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search by Field's Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119776#M32142</link>
      <description>&lt;P&gt;Let me give some more information:&lt;/P&gt;

&lt;P&gt;I have a statement "eval entity="" " which is eventually set to some value which will only be a single value. Now, I need to further search the logs for this single value. Is there a way so that I search what entity equals as opposed to just its name?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119776#M32142</guid>
      <dc:creator>edschembor</dc:creator>
      <dc:date>2014-06-25T18:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search by Field's Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119777#M32143</link>
      <description>&lt;P&gt;Having trouble understanding this. Do I need the user="john.doe" part? Why does this need to be done as a subsearch?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-Field-s-Value/m-p/119777#M32143</guid>
      <dc:creator>edschembor</dc:creator>
      <dc:date>2014-06-26T13:04:50Z</dc:date>
    </item>
  </channel>
</rss>

