<?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: Optimizing query designed to retrieve source and field names only in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495945#M84567</link>
    <description>&lt;P&gt;Thanks @to4kawa - I'm not sure what the SPL looks like for this but I'll try to play around with this. In the end, I want to be able to tell senior mgmt "here are the 10 fields we have, and these 2 are from source 1 while these 2 come from source 2" for today" so this seems to be closer to what I'm looking for.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 22:56:50 GMT</pubDate>
    <dc:creator>jsam019</dc:creator>
    <dc:date>2020-03-15T22:56:50Z</dc:date>
    <item>
      <title>Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495934#M84556</link>
      <description>&lt;P&gt;Using the REST api, I am currently retrieving a set of events from Splunk and extracting all of the field names and log sources, simultaneously building a map of log sources and fields belonging to them. Is there any way that I can retrieve this data with a minimal payload? For example, if I pull back 1 record that is from LogSource1 and has Property1 equal to [some really long string], I really don't want that whole string back. I just need to consume LogSource1 and Property1. I'm open to any ideas.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 18:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495934#M84556</guid>
      <dc:creator>jsam019</dc:creator>
      <dc:date>2020-03-14T18:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495935#M84557</link>
      <description>&lt;P&gt;Where is Splunk in this?  The source of the data?  The destination of the data?  You have told us almost nothing.  You need to try again and give ALL the details.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 19:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495935#M84557</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-14T19:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495936#M84558</link>
      <description>&lt;P&gt;...it is the splunk REST api, sir. That is where the events are located.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 19:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495936#M84558</guid>
      <dc:creator>jsam019</dc:creator>
      <dc:date>2020-03-14T19:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495937#M84559</link>
      <description>&lt;P&gt;That is not all the details; that is just one.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 20:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495937#M84559</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-14T20:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495938#M84560</link>
      <description>&lt;P&gt;I'm looking for suggestions to optimally retrieve event data via splunk's API aside from loading the entire event. I currently send basic SPL queries with a time range and pull out the fields and sources I see.. that results in gigantic payloads which I extract only those 2 pieces of data. I'm not sure what else needs to be clarified. I know about the field summary option, but that doesn't give me the log sources used for each field.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 21:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495938#M84560</guid>
      <dc:creator>jsam019</dc:creator>
      <dc:date>2020-03-14T21:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495939#M84561</link>
      <description>&lt;P&gt;You can always end your &lt;CODE&gt;SPL&lt;/CODE&gt; with &lt;CODE&gt;| table Just the fields I need&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 01:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495939#M84561</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-15T01:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495940#M84562</link>
      <description>&lt;P&gt;The issue is that I don't know what fields are available since we have several log sources. &lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 21:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495940#M84562</guid>
      <dc:creator>jsam019</dc:creator>
      <dc:date>2020-03-15T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495941#M84563</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your search
| fieldsummary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;try this and check your fields.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 22:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495941#M84563</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-15T22:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495942#M84564</link>
      <description>&lt;P&gt;@to4kawa I've alluded to that already. The issue is that it won't indicate which sources contained the fields.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 22:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495942#M84564</guid>
      <dc:creator>jsam019</dc:creator>
      <dc:date>2020-03-15T22:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495943#M84565</link>
      <description>&lt;P&gt;after searching, select &lt;CODE&gt;source&lt;/CODE&gt; from left side &lt;EM&gt;extract fields&lt;/EM&gt;&lt;BR /&gt;
and then, check your fields again.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 22:22:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495943#M84565</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-15T22:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495944#M84566</link>
      <description>&lt;P&gt;You are making this impossible.  You need to back all the way and explain the problem FULLY and clearly.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 22:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495944#M84566</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-15T22:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495945#M84567</link>
      <description>&lt;P&gt;Thanks @to4kawa - I'm not sure what the SPL looks like for this but I'll try to play around with this. In the end, I want to be able to tell senior mgmt "here are the 10 fields we have, and these 2 are from source 1 while these 2 come from source 2" for today" so this seems to be closer to what I'm looking for.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 22:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495945#M84567</guid>
      <dc:creator>jsam019</dc:creator>
      <dc:date>2020-03-15T22:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing query designed to retrieve source and field names only</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495946#M84568</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;source="A" |table * | foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;="sourceA" ]  |append [ search source="B" | table * | foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;="sourceB" ]  ] |stats values(*) as * | transpose 0 | where mvcount('row 1')=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query shows the fields from only one source. How about this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimizing-query-designed-to-retrieve-source-and-field-names/m-p/495946#M84568</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-16T21:08:27Z</dc:date>
    </item>
  </channel>
</rss>

