<?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: Query many fields with the same part in the name in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309553#M4127</link>
    <description>&lt;P&gt;Be sure to click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 22:40:29 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-09-01T22:40:29Z</dc:date>
    <item>
      <title>Query many fields with the same part in the name</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309550#M4124</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;i have events in one sourcetype with over 90 similar fields like field1, field2 ... field90.&lt;/P&gt;

&lt;P&gt;I can write a query like: search index=a sourcetype=2 field1=* field2=* ..field90=* | stats min(field1), max(field1, min(field2), max(field2)&lt;/P&gt;

&lt;P&gt;is there a way reduce the long query to something like: index=a sourcetype=2 field*=* | stats min(field*) max(field*) ? &lt;/P&gt;

&lt;P&gt;THX&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309550#M4124</guid>
      <dc:creator>amielke</dc:creator>
      <dc:date>2020-09-29T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query many fields with the same part in the name</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309551#M4125</link>
      <description>&lt;P&gt;If _raw has a field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a sourcetype=2 "field*=*"|stats min(field*) as min_field* max(field*) as max_field*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;※You can use wild cards for stats.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 06:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309551#M4125</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-08-30T06:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query many fields with the same part in the name</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309552#M4126</link>
      <description>&lt;P&gt;index=a sourcetype=2 |stats min(field*) as min_field* max(field*) as max_field*&lt;/P&gt;

&lt;P&gt;Works fine, Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309552#M4126</guid>
      <dc:creator>amielke</dc:creator>
      <dc:date>2020-09-29T15:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query many fields with the same part in the name</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309553#M4127</link>
      <description>&lt;P&gt;Be sure to click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 22:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Query-many-fields-with-the-same-part-in-the-name/m-p/309553#M4127</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-01T22:40:29Z</dc:date>
    </item>
  </channel>
</rss>

