<?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 find the difference between columns headers (new column headers one month that don't exist in the previous month)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221656#M65141</link>
    <description>&lt;P&gt;HI &lt;/P&gt;

&lt;P&gt;I have gave the same result what my search as well (which I have just corrected). However both shows one filed with 0 but the value is visibe in 2 month. What can be the reason ? &lt;/P&gt;

&lt;P&gt;I have corrected my search like that : &lt;BR /&gt;
|set diff [search index = A earliest=-7d@mon-1mon-1d latest=-7d@mon-1d | stats dc(&lt;EM&gt;) as * |transpose | table column] [search index = A earliest=-7d@mon-2mon-1d | stats dc(&lt;/EM&gt;) as * |transpose | table column]&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2015 13:16:01 GMT</pubDate>
    <dc:creator>akawacz</dc:creator>
    <dc:date>2015-11-09T13:16:01Z</dc:date>
    <item>
      <title>How to find the difference between columns headers (new column headers one month that don't exist in the previous month)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221654#M65139</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;I am trying to find a differecne between column headers (month to another month). Meaning, if in the new month there are some new columns headers which do not exist in the previous month.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|set diff [search index = A PERIOD="2015-08-01 00:00:00" | stats dc(*) as * |transpose | table column] [search index = A PERIOD="2015-09-01 00:00:00" | stats dc(*) as * |transpose | table column]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;above search shows me 27 values, but it should be just one. Also I was trying to use foreach, but haven't had any luck there. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 11:06:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221654#M65139</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-11-09T11:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the difference between columns headers (new column headers one month that don't exist in the previous month)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221655#M65140</link>
      <description>&lt;P&gt;Do you want to see the names of the new headers?&lt;BR /&gt;
I can think of something like this:&lt;/P&gt;

&lt;P&gt;Set the timerangepicker to the 2 months you want to compare.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....
| bucket span=1mon _time

| stats count() AS * BY _time
| transpose

| rename "row 1" -&amp;gt; previous_month, "row 2" -&amp;gt; current_month
| search previous_month=0 AND row2&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Nov 2015 11:39:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221655#M65140</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2015-11-09T11:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the difference between columns headers (new column headers one month that don't exist in the previous month)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221656#M65141</link>
      <description>&lt;P&gt;HI &lt;/P&gt;

&lt;P&gt;I have gave the same result what my search as well (which I have just corrected). However both shows one filed with 0 but the value is visibe in 2 month. What can be the reason ? &lt;/P&gt;

&lt;P&gt;I have corrected my search like that : &lt;BR /&gt;
|set diff [search index = A earliest=-7d@mon-1mon-1d latest=-7d@mon-1d | stats dc(&lt;EM&gt;) as * |transpose | table column] [search index = A earliest=-7d@mon-2mon-1d | stats dc(&lt;/EM&gt;) as * |transpose | table column]&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 13:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-difference-between-columns-headers-new-column/m-p/221656#M65141</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-11-09T13:16:01Z</dc:date>
    </item>
  </channel>
</rss>

