<?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: Set Table Row/field from another Row/Field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454680#M128647</link>
    <description>&lt;P&gt;@wrussell12 seems like you need to add filldown to your current result. Please try out and confirm&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | filldown CASE_ID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Jul 2019 04:55:09 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-07-03T04:55:09Z</dc:date>
    <item>
      <title>Set Table Row/field from another Row/Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454678#M128645</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  ID  |  NAME | CASE_ID |
|  1   |   ABC  |  C101    |
|  2   |  XYZ   |  null    |
|  3   |  DFG  |  C505    |
|  4   |  QAZ   |  null    |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to set Row(2) Case_ID by Row(1) Case_Id. &lt;BR /&gt;
Likewise, QAZ-Case_ID to DFGCase_ID.&lt;BR /&gt;
The requirement is to link ABC and XYZ together, when they have nothing in common, but the CaseId is used for both.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Final result:&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  ID  |  NAME    | CASE_ID |
|  1   |   ABC    |  C101   |
|  2   |   XYZ    |  C101   |
|  3   |  DFG     |  C505   |
|  4   |  QAZ     |  C505   |
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454678#M128645</guid>
      <dc:creator>wrussell12</dc:creator>
      <dc:date>2020-09-30T01:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Table Row/field from another Row/Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454679#M128646</link>
      <description>&lt;P&gt;Hardcoding is fine, for example:&lt;/P&gt;

&lt;P&gt;if(NAME==QAZ) {&lt;BR /&gt;
   QAZ.CASE_ID = DFG.CASE_ID&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454679#M128646</guid>
      <dc:creator>wrussell12</dc:creator>
      <dc:date>2020-09-30T01:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Table Row/field from another Row/Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454680#M128647</link>
      <description>&lt;P&gt;@wrussell12 seems like you need to add filldown to your current result. Please try out and confirm&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | filldown CASE_ID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jul 2019 04:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454680#M128647</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-07-03T04:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Table Row/field from another Row/Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454681#M128648</link>
      <description>&lt;P&gt;@wrussell12 &lt;/P&gt;

&lt;P&gt;Have you tried &lt;CODE&gt;filldown&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/filldown"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/filldown&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | table ID NAME CASE_ID | filldown CASE_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Sample Search:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval t="1,ABC,C101|2,XYZ|3,DFG,C505|4,QAZ",t=split(t,"|") | mvexpand t | eval ID=mvindex(split(t,","),0),NAME=mvindex(split(t,","),1),CASE_ID=mvindex(split(t,","),2) 
| table ID NAME CASE_ID | filldown CASE_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 04:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Set-Table-Row-field-from-another-Row-Field/m-p/454681#M128648</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-07-03T04:56:21Z</dc:date>
    </item>
  </channel>
</rss>

