<?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: Include multiple fields of the same type in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639534#M221594</link>
    <description>&lt;P&gt;Thanks for your answer! This helps quite a bit.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2023 17:54:39 GMT</pubDate>
    <dc:creator>trevor7</dc:creator>
    <dc:date>2023-04-11T17:54:39Z</dc:date>
    <item>
      <title>How to include multiple fields of the same type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639520#M221587</link>
      <description>&lt;P&gt;I would like to add all instances of a field within the same variable, named SynchronousExecution. Is there a better way to include all fields of the same type?&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 QPACAWTE_0001 = if(isNull(QPACAWTE_0001), 0, QPACAWTE_0001)             
| eval QPACAWTE_0002 = if(isNull(QPACAWTE_0002), 0, QPACAWTE_0002)             
| eval QPACAWTE_0003 = if(isNull(QPACAWTE_0003), 0, QPACAWTE_0003)             
| eval QPACAWTE_0004 = if(isNull(QPACAWTE_0004), 0, QPACAWTE_0004)             
| eval QPACAWTE_0005 = if(isNull(QPACAWTE_0005), 0, QPACAWTE_0005)                
| eval SynchronousExecution = QPACAWTE_0001 + QPACAWTE_0002 + QPACAWTE_0003 + QPACAWTE_0004 + QPACAWTE_0005&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 16:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639520#M221587</guid>
      <dc:creator>trevor7</dc:creator>
      <dc:date>2023-04-11T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Include multiple fields of the same type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639521#M221588</link>
      <description>&lt;P&gt;Assuming these are all numerics, you could do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval SynchronousExecution = 0
| foreach QPACAWTE_*
  [| eval SynchronousExecution = SynchronousExecution + if(isnull(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;), 0, &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)]&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Apr 2023 15:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639521#M221588</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-11T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Include multiple fields of the same type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639534#M221594</link>
      <description>&lt;P&gt;Thanks for your answer! This helps quite a bit.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 17:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-multiple-fields-of-the-same-type/m-p/639534#M221594</guid>
      <dc:creator>trevor7</dc:creator>
      <dc:date>2023-04-11T17:54:39Z</dc:date>
    </item>
  </channel>
</rss>

