<?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 combine similar and different values of two fields together? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616478#M50620</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247443"&gt;@din98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you have to normalize your field and I hint to do this in a calculated field and not in your search.&lt;/P&gt;&lt;P&gt;In few word, you have to create two eval commands like thie following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval 
   state1=case(state1="Completed","Successful",state1="Faulted","Successful"),
   state2=case(state2="Completed","Successful",state2="Faulted","Successful")&lt;/LI-CODE&gt;&lt;P&gt;you can try them in a search, but after the test I hint to put then in two calculated fields.&lt;/P&gt;&lt;P&gt;then in the search use the coalesce option in the eval command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval state=coalesce(state1,state2)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 06:12:08 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-10-10T06:12:08Z</dc:date>
    <item>
      <title>How to combine similar and different values of two fields together?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616477#M50619</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 12:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616477#M50619</guid>
      <dc:creator>din98</dc:creator>
      <dc:date>2023-03-12T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine similar and different values of two fields together?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616478#M50620</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247443"&gt;@din98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you have to normalize your field and I hint to do this in a calculated field and not in your search.&lt;/P&gt;&lt;P&gt;In few word, you have to create two eval commands like thie following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval 
   state1=case(state1="Completed","Successful",state1="Faulted","Successful"),
   state2=case(state2="Completed","Successful",state2="Faulted","Successful")&lt;/LI-CODE&gt;&lt;P&gt;you can try them in a search, but after the test I hint to put then in two calculated fields.&lt;/P&gt;&lt;P&gt;then in the search use the coalesce option in the eval command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval state=coalesce(state1,state2)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 06:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616478#M50620</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-10T06:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine similar and different values of two fields together?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616748#M50639</link>
      <description>&lt;P&gt;&amp;nbsp;,&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 13:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616748#M50639</guid>
      <dc:creator>din98</dc:creator>
      <dc:date>2023-03-12T13:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine similar and different values of two fields together?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616810#M50650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247443"&gt;@din98&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can add all the conditions you have, I don't know if it's possible in your logs, but you could have:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval 
   state1=case(state1="Completed","Successful",state1="Faulted","Successful",state2="Pending","Pending"),
   state2=case(state2="Completed","Successful",state2="Faulted","Successful",state2="Pending","Pending")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 12:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-combine-similar-and-different-values-of-two-fields/m-p/616810#M50650</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-12T12:06:00Z</dc:date>
    </item>
  </channel>
</rss>

