<?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 can I combine a field value , if the other 3 field values are the same in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698654#M237231</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255050"&gt;@Dayalss&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;sorry but it isn't clear, could yuou share some sample of the normal condition (field1, field2 and field3 different), and the condition with field1, field2 and field3 the same?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 13:50:03 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-09-10T13:50:03Z</dc:date>
    <item>
      <title>How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698649#M237228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I combine a field value , if the other 3 field values are the same&lt;/P&gt;&lt;P&gt;Ex:- If the field1 , field2 , field3 are same but the field4 is different and its creating a new row in my splunk table,&lt;/P&gt;&lt;P&gt;I want to merge or combine the field4 values into one field value separated by commas if the field1 , field2 , field3 are same&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698649#M237228</guid>
      <dc:creator>Dayalss</dc:creator>
      <dc:date>2024-09-10T13:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698653#M237230</link>
      <description>&lt;P&gt;Please give an example of your expected output for when the fields are the same and for when they are not the same.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:48:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698653#M237230</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-10T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698654#M237231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255050"&gt;@Dayalss&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;sorry but it isn't clear, could yuou share some sample of the normal condition (field1, field2 and field3 different), and the condition with field1, field2 and field3 the same?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698654#M237231</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-10T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698657#M237233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My current data looks like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE width="332"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;IP&lt;/TD&gt;&lt;TD width="95"&gt;Hostname&lt;/TD&gt;&lt;TD width="109"&gt;ID&lt;/TD&gt;&lt;TD width="64"&gt;Sockets&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1.1.1.1.&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;404&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1.1.1.1.&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2.2.2.2.&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;TD&gt;404&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3.3.3.3&lt;/TD&gt;&lt;TD&gt;Grapes&lt;/TD&gt;&lt;TD&gt;98&lt;/TD&gt;&lt;TD&gt;404&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;So only because for the 2nd row socket is 22 its creating another row , what I want is if the first 3 columns are same then it can merge the socket field value like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE width="332"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;IP&lt;/TD&gt;&lt;TD width="95"&gt;Hostname&lt;/TD&gt;&lt;TD width="109"&gt;ID&lt;/TD&gt;&lt;TD width="64"&gt;Sockets&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1.1.1.1.&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;404,22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2.2.2.2.&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;TD&gt;404&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3.3.3.3&lt;/TD&gt;&lt;TD&gt;Grapes&lt;/TD&gt;&lt;TD&gt;98&lt;/TD&gt;&lt;TD&gt;404&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698657#M237233</guid>
      <dc:creator>Dayalss</dc:creator>
      <dc:date>2024-09-10T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698660#M237234</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats values(Sockets) as Sockets by IP Hostname ID
| eval Sockets=mvjoin(Sockets, ",")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698660#M237234</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-10T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698666#M237235</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;I have already tried this , but the issue is there are around 15+ fields which Im using in my complete table query&amp;nbsp; at last.&lt;BR /&gt;&lt;BR /&gt;I just want to merge only based on these 3 fields , but if I mention these fields in stats all other 12+ fields are getting empty values.&lt;BR /&gt;&lt;BR /&gt;Is there a way only it can check for those 3 fields and does not impact other field values&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698666#M237235</guid>
      <dc:creator>Dayalss</dc:creator>
      <dc:date>2024-09-10T14:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698674#M237236</link>
      <description>&lt;P&gt;Please provide a more complete representation of your data and your expected output - we can only work with what you show us.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698674#M237236</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-10T15:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I combine a field value , if the other 3 field values are the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698678#M237237</link>
      <description>&lt;P&gt;Take what was given previously and adjust with your additional fields you need carried through.&lt;/P&gt;&lt;P&gt;Original Suggestion&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(Sockets) as Sockets by IP Hostname ID
| eval Sockets=mvjoin(Sockets, ",")&lt;/LI-CODE&gt;&lt;P&gt;Extended Suggestion&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(x) as x, values(y) as y, values(Sockets) as Sockets by IP Hostname ID
| eval Sockets=mvjoin(Sockets, ",")
| table IP Hostname ID Sockets x y&lt;/LI-CODE&gt;&lt;P&gt;Extend as many fields that you want to carry forward and the table is only required if you wish to control the display order of the fields, completely skip otherwise.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 17:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-combine-a-field-value-if-the-other-3-field-values-are/m-p/698678#M237237</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-09-10T17:18:40Z</dc:date>
    </item>
  </channel>
</rss>

