<?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 Correlate data in JSON file without timestamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correlate-data-in-JSON-file-without-timestamp/m-p/529530#M149559</link>
    <description>&lt;P&gt;I have a JSON input with different types, all representing a data point at a certain time. I have the start time of the event and am looking for a way to get all the data organised without having to revert to custom Python code - how do I do this?&lt;/P&gt;&lt;P&gt;The 'time' type in JSON depicts how many seconds since the start time a data point is happening across all these types.&lt;/P&gt;&lt;P&gt;Ideally I'm looking for something that looks like this based on the data below assuming the start time is 12:00:00, probably latlng even split but that's secondary for now:&lt;/P&gt;&lt;TABLE border="1" width="63.93939393939394%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;distance&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;altitude&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;latlng&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;12:00:00&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;3.8&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;51.5&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;12:00:01&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;5.2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;51.6&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12:00:03&lt;/TD&gt;&lt;TD&gt;6.7&lt;/TD&gt;&lt;TD&gt;51.5&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;12:00:04&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;8.9&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;51.5&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    {
        "type": "time",
        "data": [
            0,
            1,
            3,
            4
        ]
    }, 
    {
        "type": "distance",
        "data": [
            3.8,
            5.2,
            6.7,
            8.9
        ]
    },
    {
        "type": "altitude",
        "data": [
            51.5,
            51.6,
            51.5,
            51.5
        ]
    },
    {
        "type": "latlng",
        "data": [
            [
                -33.895627,
                151.228228
            ],
            [
                -33.895627,
                151.228228
            ],
            [
                -33.895627,
                151.228228
            ],
            [
                -33.895627,
                151.228228
            ],
        ]
    },
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 12:55:36 GMT</pubDate>
    <dc:creator>Patrick_Peeters</dc:creator>
    <dc:date>2020-11-16T12:55:36Z</dc:date>
    <item>
      <title>Correlate data in JSON file without timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlate-data-in-JSON-file-without-timestamp/m-p/529530#M149559</link>
      <description>&lt;P&gt;I have a JSON input with different types, all representing a data point at a certain time. I have the start time of the event and am looking for a way to get all the data organised without having to revert to custom Python code - how do I do this?&lt;/P&gt;&lt;P&gt;The 'time' type in JSON depicts how many seconds since the start time a data point is happening across all these types.&lt;/P&gt;&lt;P&gt;Ideally I'm looking for something that looks like this based on the data below assuming the start time is 12:00:00, probably latlng even split but that's secondary for now:&lt;/P&gt;&lt;TABLE border="1" width="63.93939393939394%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;distance&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;altitude&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;latlng&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;12:00:00&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;3.8&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;51.5&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;12:00:01&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;5.2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;51.6&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12:00:03&lt;/TD&gt;&lt;TD&gt;6.7&lt;/TD&gt;&lt;TD&gt;51.5&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;12:00:04&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;8.9&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;51.5&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&lt;SPAN&gt;-33.895627&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;151.228228&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    {
        "type": "time",
        "data": [
            0,
            1,
            3,
            4
        ]
    }, 
    {
        "type": "distance",
        "data": [
            3.8,
            5.2,
            6.7,
            8.9
        ]
    },
    {
        "type": "altitude",
        "data": [
            51.5,
            51.6,
            51.5,
            51.5
        ]
    },
    {
        "type": "latlng",
        "data": [
            [
                -33.895627,
                151.228228
            ],
            [
                -33.895627,
                151.228228
            ],
            [
                -33.895627,
                151.228228
            ],
            [
                -33.895627,
                151.228228
            ],
        ]
    },
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 12:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlate-data-in-JSON-file-without-timestamp/m-p/529530#M149559</guid>
      <dc:creator>Patrick_Peeters</dc:creator>
      <dc:date>2020-11-16T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate data in JSON file without timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlate-data-in-JSON-file-without-timestamp/m-p/529804#M149669</link>
      <description>&lt;P&gt;Managed to get it done via Python's pandas module, specifically pandas.DataFrame function. It works great for series and dataframe data like the one I had.&lt;/P&gt;&lt;P&gt;The result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[
    {
        "time": 1580539600,
        "distance": 0,
        "altitude": 45.7,
        "heartrate": 77,
        "lat": -33.895302,
        "lon": 151.228177
    },
    {
        "time": 1580539601,
        "distance": 0,
        "altitude": 45.7,
        "heartrate": 77,
        "lat": -33.895302,
        "lon": 151.228177
    },
    {
        "time": 1580539602,
        "distance": 0,
        "altitude": 45.7,
        "heartrate": 77,
        "lat": -33.895325,
        "lon": 151.22817
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 18:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlate-data-in-JSON-file-without-timestamp/m-p/529804#M149669</guid>
      <dc:creator>Patrick_Peeters</dc:creator>
      <dc:date>2020-11-17T18:44:02Z</dc:date>
    </item>
  </channel>
</rss>

