<?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 How to count the number of columns in a file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325297#M164481</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to do a comparison, wherein I want to verify that the number of columns in file X matches the number of columns in file Y.&lt;/P&gt;

&lt;P&gt;Its literally a comparison of two figures.&lt;/P&gt;

&lt;P&gt;Does anyone have any idea? I was thinking of using fieldsummary, but I'm not quite sure on how to implement it&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 10:11:59 GMT</pubDate>
    <dc:creator>mahbs</dc:creator>
    <dc:date>2017-12-08T10:11:59Z</dc:date>
    <item>
      <title>How to count the number of columns in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325297#M164481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to do a comparison, wherein I want to verify that the number of columns in file X matches the number of columns in file Y.&lt;/P&gt;

&lt;P&gt;Its literally a comparison of two figures.&lt;/P&gt;

&lt;P&gt;Does anyone have any idea? I was thinking of using fieldsummary, but I'm not quite sure on how to implement it&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 10:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325297#M164481</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-12-08T10:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of columns in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325298#M164482</link>
      <description>&lt;P&gt;Can you please elaborate your question?&lt;BR /&gt;
Give us sample input data and tell us the output you want so that I can write a query for you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 10:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325298#M164482</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-08T10:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of columns in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325299#M164483</link>
      <description>&lt;P&gt;Are these indexes or lookups?&lt;/P&gt;

&lt;P&gt;At any rate, to do it for one, you’d use something like &lt;CODE&gt;...|fieldsummary |stats count as fields&lt;/CODE&gt; And you can join or append the other file&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 12:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-number-of-columns-in-a-file/m-p/325299#M164483</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-12-08T12:14:53Z</dc:date>
    </item>
  </channel>
</rss>

