<?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 document what is present in the index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698555#M237200</link>
    <description>&lt;P&gt;This is much more helpful.&amp;nbsp; Running:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;index=&amp;lt;name&amp;gt; | fieldsummary&lt;/P&gt;&lt;P&gt;Gives me 2.4 million+ events and 261 Statistics.&amp;nbsp; I presume then the 261 would be the sum total of disparate fields available to any of my queries.&amp;nbsp; Should that be true then I need only investigate each one to see what the heck they are and figure out if they are of any use.&lt;/P&gt;&lt;P&gt;Not a small task, but I know more now than I did 30 minutes ago.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 14:40:26 GMT</pubDate>
    <dc:creator>texascj</dc:creator>
    <dc:date>2024-09-09T14:40:26Z</dc:date>
    <item>
      <title>How to document what is present in the index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698547#M237195</link>
      <description>&lt;P&gt;My apologies for such a noob question.&amp;nbsp; I literally got dropped into a Splunk environment and I know little to nothing about it.&lt;/P&gt;&lt;P&gt;I have an index (foo as an example) and I'm told it's based on Oracle audit logs.&amp;nbsp; However, the index was built for us by the Admin and all I get is blank looks when I asked what exactly is IN the index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is...how can I interrogate the index to find out what is in it?&lt;/P&gt;&lt;P&gt;I ran across these commands :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;| metadata type=sourcetypes index="foo"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;| metadata type=hosts index="foo"&lt;/P&gt;&lt;P&gt;This is a start, so now I have some sourcetype "keywords" (is that right?) and I can see some hosts.&amp;nbsp; But I suspect that's just the tip of the iceberg as it were given the index itself is pretty darn big.&lt;/P&gt;&lt;P&gt;I'm an Oracle guy and if I wanted to get familiar w/ an Oracle structure I would start w/ looking at the table structures, note the fields in all the tables, get a diagram if one was available.&amp;nbsp; I don't have that option here.&amp;nbsp; I don't have the rights to "manage" the index or even create my own.&lt;/P&gt;&lt;P&gt;So I have an index and no real clue as to what is in it...&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698547#M237195</guid>
      <dc:creator>texascj</dc:creator>
      <dc:date>2024-09-09T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to document what is present in the index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698551#M237197</link>
      <description>&lt;P&gt;I would say the first thing to look at is what are the different soucetype's in the index ?&lt;BR /&gt;&lt;BR /&gt;index=foo | stats count by sourcetype&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then that will give you some kind of idea of what is being ingested for the index you have ?&lt;/P&gt;&lt;P&gt;Then if the sourcetype is named that it indicated the sourcetype's log's you can then look at the sources ?&lt;/P&gt;&lt;P&gt;index=foo | stats count by sourcetype,source&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would give you an idea of what is in the index ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698551#M237197</guid>
      <dc:creator>sjringo</dc:creator>
      <dc:date>2024-09-09T13:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to document what is present in the index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698553#M237198</link>
      <description>&lt;P&gt;I agree with &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238212"&gt;@sjringo&lt;/a&gt; but offer this faster query to find the information&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=foo by sourcetype&lt;/LI-CODE&gt;&lt;P&gt;Splunk doesn't store data in tables so there's no equivalent to a SQL table dump.&amp;nbsp; You can use the &lt;FONT face="courier new,courier"&gt;fieldsummary&lt;/FONT&gt; command to see what fields are in the index along with their values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = foo | fieldsummary&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Sep 2024 14:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698553#M237198</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-09-09T14:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to document what is present in the index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698554#M237199</link>
      <description>&lt;P&gt;TY 4 that...when I run that first command it returns just north of 2.5 million events and 17 statistics.&amp;nbsp; So I see bandwidth, cpu, df, df_metric, exec, interfaces, iostat, lsof, netstat, openPorts, package, protocol, ps, top, uptime, vmstat, and who.&lt;/P&gt;&lt;P&gt;For all of these, the sourcetype = source with one exception.&amp;nbsp; Exec is broken out to 3 .sh files in a splunkforwarder folder structure.&lt;/P&gt;&lt;P&gt;I do not know if this is correct or not.&amp;nbsp; For instance, I discovered there is a fields link within Settings and I can get to Field Alisases, trim the list to "oracle" and I see stuff reporting from Oracle Audit, Oracle Database, Oracle Listener, Oracle Instance, Oracle Session, Oracle SysPerf, etc...&lt;/P&gt;&lt;P&gt;My understanding is the Splunk Index (this is a file?) is used by Splunk in searching for Keywords (are these fields?).&amp;nbsp; Thus, if the index contains ONLY the source / sourcetype information, then I'm gold and I simply need to define what those 17 stats are actually from/ for.&amp;nbsp; However, I also know that cannot be true as I can search on a Host=&amp;lt;something&amp;gt; which is not in that list.&lt;/P&gt;&lt;P&gt;I do hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 14:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698554#M237199</guid>
      <dc:creator>texascj</dc:creator>
      <dc:date>2024-09-09T14:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to document what is present in the index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698555#M237200</link>
      <description>&lt;P&gt;This is much more helpful.&amp;nbsp; Running:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;index=&amp;lt;name&amp;gt; | fieldsummary&lt;/P&gt;&lt;P&gt;Gives me 2.4 million+ events and 261 Statistics.&amp;nbsp; I presume then the 261 would be the sum total of disparate fields available to any of my queries.&amp;nbsp; Should that be true then I need only investigate each one to see what the heck they are and figure out if they are of any use.&lt;/P&gt;&lt;P&gt;Not a small task, but I know more now than I did 30 minutes ago.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 14:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-document-what-is-present-in-the-index/m-p/698555#M237200</guid>
      <dc:creator>texascj</dc:creator>
      <dc:date>2024-09-09T14:40:26Z</dc:date>
    </item>
  </channel>
</rss>

