<?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: is there a way to pass field value from search to write kind of an event in the same search using eval command ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598679#M208462</link>
    <description>&lt;P&gt;That's exactly what I needed, Thanks much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 15:17:35 GMT</pubDate>
    <dc:creator>ak9092</dc:creator>
    <dc:date>2022-05-20T15:17:35Z</dc:date>
    <item>
      <title>Is there a way to pass field value from search to write kind of an event in the same search using eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598665#M208458</link>
      <description>&lt;P&gt;Hey Splunkers,&lt;/P&gt;
&lt;P&gt;I am not sure if this is possible or not but what i was trying to do is something like passing the values of search in the eval command to basically form a statement or&amp;nbsp; an event .&lt;/P&gt;
&lt;P&gt;So for example consider below search returns multiple users first name, last name and country details.&lt;/P&gt;
&lt;P&gt;Now with that field values what i am trying to do is create a eval statement like below-&lt;/P&gt;
&lt;P&gt;index=foo source=user_detail&lt;/P&gt;
&lt;P&gt;|table first_name&amp;nbsp; last_name country&lt;/P&gt;
&lt;P&gt;|eval statement = My name is "$first_name $ $last_name$ and i come from $country$&lt;/P&gt;
&lt;P&gt;|table statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this is not passing those field values to eval statement, so anyone knows if there is a way we can do this ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598665#M208458</guid>
      <dc:creator>ak9092</dc:creator>
      <dc:date>2022-05-20T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass field value from search to write kind of an event in the same search using eval command ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598678#M208461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209974"&gt;@ak9092&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want to concatenatethree fields value in only one, is it correct?&lt;/P&gt;&lt;P&gt;if this is your need, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo source=user_detail
| eval statement="My name is ".first_name." ".last_name." and i come from ".country
| table statement&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598678#M208461</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-20T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass field value from search to write kind of an event in the same search using eval command ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598679#M208462</link>
      <description>&lt;P&gt;That's exactly what I needed, Thanks much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598679#M208462</guid>
      <dc:creator>ak9092</dc:creator>
      <dc:date>2022-05-20T15:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: is there a way to pass field value from search to write kind of an event in the same search using eval command ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598681#M208464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/209974"&gt;@ak9092&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-pass-field-value-from-search-to-write-kind-of/m-p/598681#M208464</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-20T15:26:23Z</dc:date>
    </item>
  </channel>
</rss>

