<?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: Create key value pair from a key and value column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-key-value-pair-from-a-key-and-value-column/m-p/497326#M138527</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourlookup.csv | fields ID KEY VALUE
| eval {KEY}=VALUE | field - KEY VALUE
| stats values(*) as * by ID
| where deployed="yes" AND installDate="&amp;lt;whatever&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Jan 2020 21:58:04 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-01-28T21:58:04Z</dc:date>
    <item>
      <title>Create key value pair from a key and value column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-key-value-pair-from-a-key-and-value-column/m-p/497325#M138526</link>
      <description>&lt;P&gt;I am not sure why I can't figure this out, been all over and each untable or makemv solution fails for this simple challenge.&lt;/P&gt;

&lt;P&gt;I have a lookup with 3 fields&lt;BR /&gt;
id, key, value&lt;/P&gt;

&lt;P&gt;this will produce rows that look like the following with these headers&lt;BR /&gt;
ID, KEY, VALUE&lt;BR /&gt;
1, installDate, 10/15/2010&lt;BR /&gt;
1,closeDate, 07/21,2003&lt;BR /&gt;
1,deployed,yes&lt;BR /&gt;
2,date1, .... etc.&lt;/P&gt;

&lt;P&gt;I want to be able to do select ids where deployed=yes InstallDate=*&lt;/P&gt;

&lt;P&gt;I can't for the life of me figure this out&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-key-value-pair-from-a-key-and-value-column/m-p/497325#M138526</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2020-01-28T21:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create key value pair from a key and value column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-key-value-pair-from-a-key-and-value-column/m-p/497326#M138527</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourlookup.csv | fields ID KEY VALUE
| eval {KEY}=VALUE | field - KEY VALUE
| stats values(*) as * by ID
| where deployed="yes" AND installDate="&amp;lt;whatever&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-key-value-pair-from-a-key-and-value-column/m-p/497326#M138527</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-01-28T21:58:04Z</dc:date>
    </item>
  </channel>
</rss>

