<?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 update table cell results based on another rows sharing common field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485115#M193528</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| streamstats max(NPID) as NPID_P current=false 
| streamstats max(Machine_Name) as Machine_Name_P current=false 
| streamstats max(NICKNAME) as NICKNAME_P current=false reset_before=("$NPID$!=$NPID_P$") reset_after=("$Machine_Name$!=$Machine_Name_P$") reset_on_change=true 
| eval NICKNAME = if(isnull(NICKNAME) AND NPID=NPID_P AND Machine_Name=Machine_Name_P,NICKNAME_P,NICKNAME) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8224i006F7391D4626BB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 11:33:41 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2020-01-22T11:33:41Z</dc:date>
    <item>
      <title>how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485109#M193522</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;In search query results some cells populate empty results for specific field. I am looking to update those empty cells based on another row which share same results for another field.&lt;/P&gt;

&lt;P&gt;In below table, NICKNAME for some rows are empty. These should be updated same as first 3 rows as they share same NPID and Machine_Name.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/280730-2020-01-20-09-40-43-search-splunk-726.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;NICKNAME = MX (where NPID=43417)&lt;BR /&gt;
NICKNAME = EPAD_DUPAL_PARALLEL (where NPID=364564)&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/280736-2020-01-20-18-13-24-search-splunk-726.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485109#M193522</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-09-30T03:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485110#M193523</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|sort 0 NPID, NICKNAME, Machine_Name
| filldown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think that's enough.&lt;/P&gt;

&lt;P&gt;Hi, @agoyal  Do you have a problem?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval NICKNAME = case(isnull(NICKNAME) AND NPID= 43417, "MX" ,isnull(NICKNAME) AND NPID=364564  ,"EPAD_DUPAL_PARALLEL" ,true(),NICKNAME)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is terrible.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 17:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485110#M193523</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-20T17:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485111#M193524</link>
      <description>&lt;P&gt;just using filldown won't work for me.  NICKNAME, NPID, Machine_Name are not always having same value.&lt;/P&gt;

&lt;P&gt;NPID and Machine name should match before updating the empty NICKNAME.&lt;/P&gt;

&lt;P&gt;Attached another example in question.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 18:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485111#M193524</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-01-20T18:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485112#M193525</link>
      <description>&lt;P&gt;I see, my answer is updated. please confirm.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 21:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485112#M193525</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-20T21:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485113#M193526</link>
      <description>&lt;P&gt;thanks but as I mentioned before, NPID, NICKNAME, Machine_Name are not same. there could be hundreds of different value.&lt;BR /&gt;
And 1st solution will fill wrong values without checking the condition of matching NPID and Machine_Name&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485113#M193526</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-09-30T03:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485114#M193527</link>
      <description>&lt;P&gt;but NPID always is.&lt;BR /&gt;
I do &lt;CODE&gt;sort&lt;/CODE&gt; .&lt;BR /&gt;
If NICKNAME is not all Null with any NPID, &lt;CODE&gt;filldown&lt;/CODE&gt; is OK. beside there are many NICKNAME, Machine_Name, etc. &lt;/P&gt;

&lt;P&gt;Anyway, why don't you create NICKNAME.csv and &lt;CODE&gt;lookup&lt;/CODE&gt; NPID with &lt;EM&gt;OUTPUTNEW&lt;/EM&gt; .&lt;/P&gt;

&lt;P&gt;e.g. NICKNAME.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NICKNAME,NPID
MX,43417
EPAD_DUPAL_PARALLEL,364564
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it's useful.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 21:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485114#M193527</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-20T21:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to update table cell results based on another rows sharing common field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485115#M193528</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| streamstats max(NPID) as NPID_P current=false 
| streamstats max(Machine_Name) as Machine_Name_P current=false 
| streamstats max(NICKNAME) as NICKNAME_P current=false reset_before=("$NPID$!=$NPID_P$") reset_after=("$Machine_Name$!=$Machine_Name_P$") reset_on_change=true 
| eval NICKNAME = if(isnull(NICKNAME) AND NPID=NPID_P AND Machine_Name=Machine_Name_P,NICKNAME_P,NICKNAME) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8224i006F7391D4626BB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 11:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-update-table-cell-results-based-on-another-rows-sharing/m-p/485115#M193528</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-01-22T11:33:41Z</dc:date>
    </item>
  </channel>
</rss>

