<?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: Adding a column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676352#M231329</link>
    <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;addcoltotals&lt;/FONT&gt; command to sum the values and put them into the location field as "ABC".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | addcoltotals labelfield=location label="ABC"&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 02 Feb 2024 01:22:31 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-02-02T01:22:31Z</dc:date>
    <item>
      <title>Adding a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676346#M231327</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi Splunk experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I’m a Splunk beginner. I need help with a requirement. I have fields named 'location,' 'login,' and 'desk' with the following values:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;location&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;login&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;desk&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;AA &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;BB &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;CC &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;DD &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;EE &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;My goal is to create a new location called 'ABC,' which should be the sum of all four locations (AA, BB, CC, DD). I've tried the following search, but it's not summing up all four locations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;| appendpipe [search AA BB CC DD | eval location=“ABC”]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;| stats sum(login) as login by desk&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Please guide me on how to achieve this. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 01:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676346#M231327</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2024-02-02T01:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676352#M231329</link>
      <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;addcoltotals&lt;/FONT&gt; command to sum the values and put them into the location field as "ABC".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | addcoltotals labelfield=location label="ABC"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Feb 2024 01:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676352#M231329</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-02-02T01:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676371#M231334</link>
      <description>&lt;P&gt;Please clarify your question - you say you want to add a column but appendpipe will add row(s) - you&amp;nbsp; have 5 locations not 4, do you wish to exclude a particular location or sum the logins for all locations by desk?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 09:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-column/m-p/676371#M231334</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-02T09:31:38Z</dc:date>
    </item>
  </channel>
</rss>

