<?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 list fields, values and also index and source names using fieldsummary in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213165#M140462</link>
    <description>&lt;P&gt;Is there a way to get difference in two searches using the above search?&lt;BR /&gt;
Basically I am trying to see the difference in fields today from yesterday and I also want to display the source name and index. &lt;BR /&gt;
I can easily find the difference but I can’t display the index name and source name with it. The above query seems to serve the purpose but I can’t figure out how to use this in my case. Any help appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 01:02:41 GMT</pubDate>
    <dc:creator>AishBhardwaj</dc:creator>
    <dc:date>2020-04-14T01:02:41Z</dc:date>
    <item>
      <title>How to list fields, values and also index and source names using fieldsummary</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213162#M140459</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I need to look for specific fields in all my indexes. Using fieldsummary, I am able to get a listing of my specific fields, count, distinct_count and values, but I also like to add 2 new columns so it would also give the index and the source names.&lt;/P&gt;
&lt;P&gt;Is there a way to do this with fieldsummary or would there be an alternatively.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 15:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213162#M140459</guid>
      <dc:creator>chanmic</dc:creator>
      <dc:date>2020-06-08T15:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to list fields, values and also index and source names using fieldsummary</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213163#M140460</link>
      <description>&lt;P&gt;See if the following helps and run it against last 24 hours or less if possible (careful as it will be a bit slow):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* GROUPBY index, sourcetype
| fields - count
| rename index AS indexname, sourcetype AS sourcetypename
| map maxsearches=5 search="| search index=\"$indexname$\" sourcetype=\"$sourcetypename$\" | head 100 | fieldsummary | eval index=\"$indexname$\", sourcetype=\"$sourcetypename$\" | fields index, sourcetype, *"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can play with the maxsearches value to match your needs once you have the final version as it can't be unlimited I'm afraid.&lt;BR /&gt;
If you want the source instead of the sourcetype simply replace it in the query above.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213163#M140460</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2017-01-04T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to list fields, values and also index and source names using fieldsummary</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213164#M140461</link>
      <description>&lt;P&gt;Thanks Javiergn&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 03:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213164#M140461</guid>
      <dc:creator>chanmic</dc:creator>
      <dc:date>2017-01-06T03:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to list fields, values and also index and source names using fieldsummary</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213165#M140462</link>
      <description>&lt;P&gt;Is there a way to get difference in two searches using the above search?&lt;BR /&gt;
Basically I am trying to see the difference in fields today from yesterday and I also want to display the source name and index. &lt;BR /&gt;
I can easily find the difference but I can’t display the index name and source name with it. The above query seems to serve the purpose but I can’t figure out how to use this in my case. Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 01:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213165#M140462</guid>
      <dc:creator>AishBhardwaj</dc:creator>
      <dc:date>2020-04-14T01:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to list fields, values and also index and source names using fieldsummary</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213166#M140463</link>
      <description>&lt;P&gt;please ask by another question and provide sample query.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 01:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-fields-values-and-also-index-and-source-names-using/m-p/213166#M140463</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-14T01:12:26Z</dc:date>
    </item>
  </channel>
</rss>

