<?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 multiple events and multiple key-value pairs (one being timestamp) in one json in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104854#M22087</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have series of two key-value pairs (timestamp and some other key) on one json file, which looks like below:&lt;/P&gt;

&lt;P&gt;{"k":"host|something","rd":[{"n":1347028874805368,"v":1},{"n":1347028874910007,"v":5},{"n":1347028874912282,"v":5},{"n":1347039314560733,"v":1},{"n":1347039314665657,"v":5},&lt;BR /&gt;
... {"n":1347443694173854,"v":5}]}&lt;/P&gt;

&lt;P&gt;My question is how to make "n" value work as timestamp and v value as value of "v". I am guessing it has something to do with transform.conf though...&lt;/P&gt;

&lt;P&gt;Any help will be greatly appreciated! Thank you in advance! &lt;/P&gt;</description>
    <pubDate>Sun, 28 Oct 2012 10:49:32 GMT</pubDate>
    <dc:creator>104K</dc:creator>
    <dc:date>2012-10-28T10:49:32Z</dc:date>
    <item>
      <title>multiple events and multiple key-value pairs (one being timestamp) in one json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104854#M22087</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have series of two key-value pairs (timestamp and some other key) on one json file, which looks like below:&lt;/P&gt;

&lt;P&gt;{"k":"host|something","rd":[{"n":1347028874805368,"v":1},{"n":1347028874910007,"v":5},{"n":1347028874912282,"v":5},{"n":1347039314560733,"v":1},{"n":1347039314665657,"v":5},&lt;BR /&gt;
... {"n":1347443694173854,"v":5}]}&lt;/P&gt;

&lt;P&gt;My question is how to make "n" value work as timestamp and v value as value of "v". I am guessing it has something to do with transform.conf though...&lt;/P&gt;

&lt;P&gt;Any help will be greatly appreciated! Thank you in advance! &lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2012 10:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104854#M22087</guid>
      <dc:creator>104K</dc:creator>
      <dc:date>2012-10-28T10:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: multiple events and multiple key-value pairs (one being timestamp) in one json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104855#M22088</link>
      <description>&lt;P&gt;&lt;YOURSEARCH&gt;|spath|rename rd{}.n AS file_time| rename rd{}.v AS file_count |eval x=mvzip(file_time,file_count) | mvexpand x|eval x = split(x,",") | eval file_time=mvindex(x,0)|eval file_count=mvindex(x,1)|eval file_time = (file_time/1000000)|convert timeformat="%Y:%m:%d:%H:%M:%S" ctime(file_time)|table file_time, file_count&lt;/YOURSEARCH&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104855#M22088</guid>
      <dc:creator>daniel_splunk</dc:creator>
      <dc:date>2020-09-28T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: multiple events and multiple key-value pairs (one being timestamp) in one json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104856#M22089</link>
      <description>&lt;P&gt;Thank you. Works like a charm. Is there any way I can do the event breaking at indexing time by the way?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 08:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-events-and-multiple-key-value-pairs-one-being-timestamp/m-p/104856#M22089</guid>
      <dc:creator>104K</dc:creator>
      <dc:date>2012-11-08T08:37:56Z</dc:date>
    </item>
  </channel>
</rss>

