<?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: In a search combine two-three field values(columns) into one field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676081#M231276</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eval newfield= mvjoin(mvappend(LocationName,EventName,ErrorCode,summary),",")&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 31 Jan 2024 15:14:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-01-31T15:14:18Z</dc:date>
    <item>
      <title>In a search combine two-three field values(columns) into one field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676076#M231274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an output like this -&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;Location&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;EventName&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;ErrorCode&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Summary&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;server1&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;Mssql.LogBackupFailed&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;BackupAgentError&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;Failed backup....&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;server2&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;Mssql.LogBackupFailed&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;BackupAgentError&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;&lt;SPAN&gt;Failed backup....&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am trying to combine all the values of Location, EventName, ErrorCode and Summary into one field called "newfield" , lets say using a comma "," or ";"&lt;/P&gt;&lt;P&gt;I am trying this command -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval newfield= mvappend(LocationName,EventName,ErrorCode,summary)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the output it is giving is -&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;server1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;&lt;SPAN&gt;Mssql.LogBackupFailed&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;&lt;SPAN&gt;BackupAgentError&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;&lt;SPAN&gt;Failed backup....&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output I am expecting is -&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;server1,Mssql.LogBackupFailed,BackupAgentError,Failed backup&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 15:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676076#M231274</guid>
      <dc:creator>man03359</dc:creator>
      <dc:date>2024-01-31T15:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: In a search combine two-three field values(columns) into one field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676078#M231275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257114"&gt;@man03359&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you want the values of the fields separated by comma, you should use eval in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval newfield=LocationName.",".EventName.",".ErrorCode.",".summary&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 15:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676078#M231275</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-01-31T15:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: In a search combine two-three field values(columns) into one field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676081#M231276</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval newfield= mvjoin(mvappend(LocationName,EventName,ErrorCode,summary),",")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 15:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-search-combine-two-three-field-values-columns-into-one/m-p/676081#M231276</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-31T15:14:18Z</dc:date>
    </item>
  </channel>
</rss>

