<?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: How to use tokens in same search query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-tokens-in-same-search-query/m-p/409247#M118068</link>
    <description>&lt;P&gt;Hi knalla,&lt;BR /&gt;
let me understand: $result.user$ token arrives from a dropdown input?&lt;BR /&gt;
what's "modifyincidents"? it isn't a command.&lt;BR /&gt;
Anyway, if you want to assign a token's value to a field, you can use the eval command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=alerts status=resolved 
| dedup incident_id
|table incident_id user 
| lookup incidents incident_id OUTPUTNEW alert, title, owner, status, impact, urgency, external_reference_id
| search owner=unassigned 
| eval owner="$result.user$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The table command in the middle of a search it isn't useful, if you want to limit the fields that your search uses, use the fields command.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 15:07:35 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-07-29T15:07:35Z</dc:date>
    <item>
      <title>How to use tokens in same search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-tokens-in-same-search-query/m-p/409246#M118067</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I'm trying to pass values of field to other field. Is there a best way to do it?&lt;/P&gt;

&lt;P&gt;Query:&lt;/P&gt;

&lt;P&gt;index=alerts  status=resolved | dedup incident_id|table incident_id user &lt;BR /&gt;
| lookup incidents incident_id OUTPUTNEW alert, title, owner, status, impact, urgency, external_reference_id|search owner=unassigned |modifyincidents owner="$result.user$"&lt;/P&gt;

&lt;P&gt;I'm trying to pass user value to owner.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-tokens-in-same-search-query/m-p/409246#M118067</guid>
      <dc:creator>knalla</dc:creator>
      <dc:date>2020-09-30T01:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tokens in same search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-tokens-in-same-search-query/m-p/409247#M118068</link>
      <description>&lt;P&gt;Hi knalla,&lt;BR /&gt;
let me understand: $result.user$ token arrives from a dropdown input?&lt;BR /&gt;
what's "modifyincidents"? it isn't a command.&lt;BR /&gt;
Anyway, if you want to assign a token's value to a field, you can use the eval command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=alerts status=resolved 
| dedup incident_id
|table incident_id user 
| lookup incidents incident_id OUTPUTNEW alert, title, owner, status, impact, urgency, external_reference_id
| search owner=unassigned 
| eval owner="$result.user$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The table command in the middle of a search it isn't useful, if you want to limit the fields that your search uses, use the fields command.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-tokens-in-same-search-query/m-p/409247#M118068</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-07-29T15:07:35Z</dc:date>
    </item>
  </channel>
</rss>

