<?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 set a value at search time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42565#M9952</link>
    <description>&lt;P&gt;I made a Union with APPEND betwenn to search :&lt;/P&gt;

&lt;P&gt;search1 APPEND [search2]&lt;/P&gt;

&lt;P&gt;I want to have a field "source" that has a specific value, depending from the source query is there a way to do somthing like :&lt;/P&gt;

&lt;P&gt;search1 source=1 | APPEND [search2 source=2]&lt;/P&gt;

&lt;P&gt;and to have results like :&lt;/P&gt;

&lt;P&gt;field1, field2, 1 (when comming from source1)&lt;BR /&gt;
field1, field2, 2 (when comming from source2)&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2012 08:37:08 GMT</pubDate>
    <dc:creator>sbsbb</dc:creator>
    <dc:date>2012-11-22T08:37:08Z</dc:date>
    <item>
      <title>set a value at search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42565#M9952</link>
      <description>&lt;P&gt;I made a Union with APPEND betwenn to search :&lt;/P&gt;

&lt;P&gt;search1 APPEND [search2]&lt;/P&gt;

&lt;P&gt;I want to have a field "source" that has a specific value, depending from the source query is there a way to do somthing like :&lt;/P&gt;

&lt;P&gt;search1 source=1 | APPEND [search2 source=2]&lt;/P&gt;

&lt;P&gt;and to have results like :&lt;/P&gt;

&lt;P&gt;field1, field2, 1 (when comming from source1)&lt;BR /&gt;
field1, field2, 2 (when comming from source2)&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 08:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42565#M9952</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2012-11-22T08:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: set a value at search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42566#M9953</link>
      <description>&lt;P&gt;Sure. Have a look at &lt;CODE&gt;eval&lt;/CODE&gt; which will do what you want.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Eval"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Eval&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 08:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42566#M9953</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-22T08:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: set a value at search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42567#M9954</link>
      <description>&lt;P&gt;that exactly what I needed thank you&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 09:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/set-a-value-at-search-time/m-p/42567#M9954</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2012-11-22T09:29:22Z</dc:date>
    </item>
  </channel>
</rss>

