<?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 pick multiple value which has same key name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474392#M81484</link>
    <description>&lt;P&gt;Thanks  @groktrev  !! It worked with max_match command.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 12:02:47 GMT</pubDate>
    <dc:creator>Deprasad</dc:creator>
    <dc:date>2020-01-09T12:02:47Z</dc:date>
    <item>
      <title>How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474383#M81475</link>
      <description>&lt;P&gt;Log looks like this.&lt;/P&gt;

&lt;P&gt;{...\"&lt;STRONG&gt;Key_name&lt;/STRONG&gt;\":\"&lt;STRONG&gt;Value&lt;/STRONG&gt;\",....},&lt;BR /&gt;
{...\"&lt;STRONG&gt;Key_name&lt;/STRONG&gt;\":\"&lt;STRONG&gt;Value&lt;/STRONG&gt;\",....},&lt;BR /&gt;
{...\"&lt;STRONG&gt;Key_name&lt;/STRONG&gt;\":\"&lt;STRONG&gt;Value&lt;/STRONG&gt;\",....},&lt;BR /&gt;
{...\"&lt;STRONG&gt;Key_name&lt;/STRONG&gt;\":\"&lt;STRONG&gt;Value&lt;/STRONG&gt;\",....},&lt;/P&gt;

&lt;P&gt;My query now extracting the first field alone. I've created a query which extracts all 4 value using append search with subsequent string from each row but the search takes lots of time since it involves 4 append search.&lt;/P&gt;

&lt;P&gt;All i need now is to fetch all 4 value into the column key_name in a single query.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 10:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474383#M81475</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2020-01-03T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474384#M81476</link>
      <description>&lt;P&gt;Are those separate events or a single event?&lt;BR /&gt;
Can you share your current query?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474384#M81476</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-03T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474385#M81477</link>
      <description>&lt;P&gt;Also if you're using a rex command, you can specify a max_match of 0 to return all matches, see the documentation here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Rex"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 19:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474385#M81477</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2020-01-03T19:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474386#M81478</link>
      <description>&lt;P&gt;@Deprasad if your data being indexed is JSON format, why dont you try to parse and ingest only the JSON structure and use &lt;CODE&gt;INDEXED_EXTRACTION=json&lt;/CODE&gt; for getting the fields auto-extracted during index time and leverage tstats to run faster searches?&lt;/P&gt;

&lt;P&gt;PS: Parsing data would be required in case your raw data has some additional contents besides JSON or is not actual JSON file. If you are indexing JSON files directly, all you would need to do is to set INDEXED_EXTRACTION=json in the props.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 19:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474386#M81478</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-01-03T19:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474387#M81479</link>
      <description>&lt;P&gt;Try with duplicates:&lt;/P&gt;

&lt;P&gt;| stats list(Key_name)&lt;/P&gt;

&lt;P&gt;without duplicates:&lt;/P&gt;

&lt;P&gt;| stats values(Key_name)&lt;/P&gt;

&lt;P&gt;Add a by clause to group by a related field:&lt;/P&gt;

&lt;P&gt;| stats values(Key_name) by other_key_name&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474387#M81479</guid>
      <dc:creator>groktrev</dc:creator>
      <dc:date>2020-09-30T03:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474388#M81480</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="{\"Key_name\":\"Value\"},
{\"Key_name\":\"Value\"},
{\"Key_name\":\"Value\"},
{\"Key_name\":\"Value\"},"
| rename COMMENT as "this is sample you provided"
| rename COMMENT as "From here, the logic"
| eval _raw=replace(_raw,"^","[")
| eval _raw=replace(_raw,"$","]")
| spath
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi,@Deprasad&lt;BR /&gt;
How about this?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 08:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474388#M81480</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-06T08:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474389#M81481</link>
      <description>&lt;P&gt;@aberkow - Thanks a lot..!! It worked like a charm.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 11:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474389#M81481</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2020-01-09T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474390#M81482</link>
      <description>&lt;P&gt;Thanks for the suggestion @niketnilay !!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 12:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474390#M81482</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2020-01-09T12:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474391#M81483</link>
      <description>&lt;P&gt;Thanks  @to4kawa !! It worked with max_match command.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 12:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474391#M81483</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2020-01-09T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick multiple value which has same key name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474392#M81484</link>
      <description>&lt;P&gt;Thanks  @groktrev  !! It worked with max_match command.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 12:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pick-multiple-value-which-has-same-key-name/m-p/474392#M81484</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2020-01-09T12:02:47Z</dc:date>
    </item>
  </channel>
</rss>

