<?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: Using token with a field created with &amp;quot;eval&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643521#M222918</link>
    <description>&lt;P&gt;It's not that message_id is a "created field".&lt;/P&gt;&lt;P&gt;You may need to set a token to &lt;FONT face="courier new,courier"&gt;$results.message_id$&lt;/FONT&gt; as part of the &lt;FONT face="courier new,courier"&gt;&amp;lt;done&amp;gt;&lt;/FONT&gt; element of your query, but you have a bigger problem:&amp;nbsp; the message_id field doesn't exist.&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command transforms the results so the only fields passed to the rest of the query are 'count', 'USER', and 'TEXT'.&amp;nbsp; There is no message_id field to search for or to use in another panel.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 20:58:54 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-05-16T20:58:54Z</dc:date>
    <item>
      <title>How to use token with a field created with "eval"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643512#M222912</link>
      <description>&lt;P&gt;So i am trying to link this to a token from another panel but since "message_id" is a created field, it doesn't work. Is there anyway I can make this work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;index&amp;gt; &amp;lt;host&amp;gt;
| eval message_id=AREA.SUBID
| stats count by USER, TEXT
| search message_id="$messid1$"
| sort - count&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643512#M222912</guid>
      <dc:creator>Goldenfit</dc:creator>
      <dc:date>2023-05-17T11:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using token with a field created with "eval"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643519#M222916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256797"&gt;@Goldenfit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you please share the code used for defining your token?&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 20:52:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643519#M222916</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-16T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using token with a field created with "eval"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643521#M222918</link>
      <description>&lt;P&gt;It's not that message_id is a "created field".&lt;/P&gt;&lt;P&gt;You may need to set a token to &lt;FONT face="courier new,courier"&gt;$results.message_id$&lt;/FONT&gt; as part of the &lt;FONT face="courier new,courier"&gt;&amp;lt;done&amp;gt;&lt;/FONT&gt; element of your query, but you have a bigger problem:&amp;nbsp; the message_id field doesn't exist.&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command transforms the results so the only fields passed to the rest of the query are 'count', 'USER', and 'TEXT'.&amp;nbsp; There is no message_id field to search for or to use in another panel.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 20:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643521#M222918</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-16T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using token with a field created with "eval"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643559#M222930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256797"&gt;@Goldenfit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;after a stats command, you have only the fields in the stats command, in your case: count, USER and TEXT.&lt;/P&gt;&lt;P&gt;So you cannot have message_id for searching after the stats command.&lt;/P&gt;&lt;P&gt;You have to put the search command before the stats or add the message_id field to the stats.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643559#M222930</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-17T06:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using token with a field created with "eval"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643629#M222959</link>
      <description>&lt;P&gt;So basically i have another panel&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Goldenfit_0-1684329030742.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25414i4544A2F3680A6AF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Goldenfit_0-1684329030742.png" alt="Goldenfit_0-1684329030742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Goldenfit_1-1684329066278.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25415iA3A4134A9456FDCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Goldenfit_1-1684329066278.png" alt="Goldenfit_1-1684329066278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my goal is that when I click on one of the message_id displayed in the chart above, my first query in the original post udates it to display TEXT and USER with this particular message_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 13:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-with-a-field-created-with-quot-eval-quot/m-p/643629#M222959</guid>
      <dc:creator>Goldenfit</dc:creator>
      <dc:date>2023-05-17T13:12:48Z</dc:date>
    </item>
  </channel>
</rss>

