<?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 sPath command Missing random few values from JSON Array in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697177#M236866</link>
    <description>&lt;P&gt;&lt;STRONG&gt;In the data, there is an array of 5 commit IDs. For some reason, it is only returning 3 values. Not sure why&amp;nbsp; 2 values are missing. Would like a fresh set of eyes to take a look please.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=XXXXX source="http:github-dev-token" eventtype="GitHub::Push" sourcetype="json_ae_git-webhook"
| spath output=commit_id path=commits.id&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;sourcetype definition&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ json_ae_git-webhook ]
AUTO_KV_JSON=false
CHARSET=UTF-8
KV_MODE=json
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TRUNCATE=100000
category=Structured
description=JavaScript Object Notation format. For more information, visit http://json.org/
disabled=false
pulldown_type=true&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Raw JSON data&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"ref":"refs/heads/Dev",
"before":"d53e9b3cb6cde4253e05019295a840d394a7bcb0",
"after":"34c07bcbf557413cf42b601c1794c87db8c321d1",
"commits":[
{
"id":"a5c816a817d06e592d2b70cd8a088d1519f2d720",
"tree_id":"15e930e14d4c62aae47a3c02c47eb24c65d11807",
"distinct":false,
"message":"rrrrrrrrrrrrrrrrrrrrrr",
"timestamp":"2024-08-12T12:00:04-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/aaaaaaaaaaaa",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"asdafasdad.json"
]
},
{
"id":"a3b3b6f728ccc0eb9113e7db723fbfc4ad220882",
"tree_id":"3586aeb0a33dc5e236cb266c948f83ff01320a9a",
"distinct":false,
"message":"xxxxxxxxxxxxxxxxxxx",
"timestamp":"2024-08-12T12:05:40-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/a3b3b6f728ccc0eb9113e7db723fbfc4ad220882",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"sddddddf.json"
]
},
{
"id":"bdcd242d6854365ddfeae6b4f86cf7bc1766e028",
"tree_id":"8286c537f7dee57395f44875ddb8b2cdb7dd48b2",
"distinct":false,
"message":"Updating pipeline: pl_gwp_file_landing_check. Adding Sylvan Performance",
"timestamp":"2024-08-12T12:06:10-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/bdcd242d6854365ddfeae6b4f86cf7bc1766e028",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"asadwefvdx.json"
]
},
{
"id":"108ebd4ff8ae9dd70e669e2ca49e293684d5c37a",
"tree_id":"5a6d71393611718b8576f8a63cdd34ce619f17dd",
"distinct":false,
"message":"asdrwerwq",
"timestamp":"2024-08-12T10:09:33-07:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/108ebd4ff8ae9dd70e669e2ca49e293684d5c37a",
"author":{
"name":"dfsd",
"email":"l.llllllllllll@aaaaaa.com",
"username":"aaaaaa"
},
"committer":{
"name":"lllllllllllll",
"email":"l.llllllllllll@abc.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"A.json",
"A.json",
"A.json"
]
},
{
"id":"34c07bcbf557413cf42b601c1794c87db8c321d1",
"tree_id":"5a6d71393611718b8576f8a63cdd34ce619f17dd",
"distinct":true,
"message":"asadasd",
"timestamp":"2024-08-12T13:32:45-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/34c07bcbf557413cf42b601c1794c87db8c321d1",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"GitasdjwqaikHubasdqw",
"email":"noreply@gitskcaskadahuqwdqbqwdqaw.com",
"username":"wdkcszjkcsebwdqwdfqwdawsldqodqw"
},
"added":[

],
"removed":[

],
"modified":[
"a.json",
"A1.json",
"A1.json"
]
}
],
"head_commit":{
"id":"34c07bcbf557413cf42b601c1794c87db8c321d1",
"tree_id":"5a6d71393611718b8576f8a63cdd34ce619f17dd",
"distinct":true,
"message":"sadwad from xxxxxxxxxxxxxxx/IH-5942-Pipeline-Change\n\nIh 5asdsazdapeline change",
"timestamp":"2024-08-12T13:32:45-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/3weweeeeeeeee,
"author":{
"name":"askjas",
"email":"101218171+asfsfgwsrsd@users.noreply.github.com",
"username":"asdwasdcqwasfdc-qwgbhvcfawdqxaiwdaszxc"
},
"committer":{
"name":"GsdzvcweditHuscwsab",
"email":"noreply@gitasdcwedhub.com",
"username":"wefczeb-fwefvdszlow"
},
"added":[

],
"removed":[

],
"modified":[
"zzzzzzz.json",
"Azzzzz.json",
"zzzz.json"
]
}
}&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 23 Aug 2024 23:50:38 GMT</pubDate>
    <dc:creator>premrajvs</dc:creator>
    <dc:date>2024-08-23T23:50:38Z</dc:date>
    <item>
      <title>sPath command Missing random few values from JSON Array</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697177#M236866</link>
      <description>&lt;P&gt;&lt;STRONG&gt;In the data, there is an array of 5 commit IDs. For some reason, it is only returning 3 values. Not sure why&amp;nbsp; 2 values are missing. Would like a fresh set of eyes to take a look please.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=XXXXX source="http:github-dev-token" eventtype="GitHub::Push" sourcetype="json_ae_git-webhook"
| spath output=commit_id path=commits.id&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;sourcetype definition&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ json_ae_git-webhook ]
AUTO_KV_JSON=false
CHARSET=UTF-8
KV_MODE=json
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TRUNCATE=100000
category=Structured
description=JavaScript Object Notation format. For more information, visit http://json.org/
disabled=false
pulldown_type=true&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Raw JSON data&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"ref":"refs/heads/Dev",
"before":"d53e9b3cb6cde4253e05019295a840d394a7bcb0",
"after":"34c07bcbf557413cf42b601c1794c87db8c321d1",
"commits":[
{
"id":"a5c816a817d06e592d2b70cd8a088d1519f2d720",
"tree_id":"15e930e14d4c62aae47a3c02c47eb24c65d11807",
"distinct":false,
"message":"rrrrrrrrrrrrrrrrrrrrrr",
"timestamp":"2024-08-12T12:00:04-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/aaaaaaaaaaaa",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"asdafasdad.json"
]
},
{
"id":"a3b3b6f728ccc0eb9113e7db723fbfc4ad220882",
"tree_id":"3586aeb0a33dc5e236cb266c948f83ff01320a9a",
"distinct":false,
"message":"xxxxxxxxxxxxxxxxxxx",
"timestamp":"2024-08-12T12:05:40-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/a3b3b6f728ccc0eb9113e7db723fbfc4ad220882",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"sddddddf.json"
]
},
{
"id":"bdcd242d6854365ddfeae6b4f86cf7bc1766e028",
"tree_id":"8286c537f7dee57395f44875ddb8b2cdb7dd48b2",
"distinct":false,
"message":"Updating pipeline: pl_gwp_file_landing_check. Adding Sylvan Performance",
"timestamp":"2024-08-12T12:06:10-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/bdcd242d6854365ddfeae6b4f86cf7bc1766e028",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"asadwefvdx.json"
]
},
{
"id":"108ebd4ff8ae9dd70e669e2ca49e293684d5c37a",
"tree_id":"5a6d71393611718b8576f8a63cdd34ce619f17dd",
"distinct":false,
"message":"asdrwerwq",
"timestamp":"2024-08-12T10:09:33-07:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/108ebd4ff8ae9dd70e669e2ca49e293684d5c37a",
"author":{
"name":"dfsd",
"email":"l.llllllllllll@aaaaaa.com",
"username":"aaaaaa"
},
"committer":{
"name":"lllllllllllll",
"email":"l.llllllllllll@abc.com",
"username":"aaaaaa"
},
"added":[

],
"removed":[

],
"modified":[
"A.json",
"A.json",
"A.json"
]
},
{
"id":"34c07bcbf557413cf42b601c1794c87db8c321d1",
"tree_id":"5a6d71393611718b8576f8a63cdd34ce619f17dd",
"distinct":true,
"message":"asadasd",
"timestamp":"2024-08-12T13:32:45-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/34c07bcbf557413cf42b601c1794c87db8c321d1",
"author":{
"name":"aaaaaa aaaaaa",
"email":"101218171+aaaaaa@users.noreply.github.com",
"username":"aaaaaa"
},
"committer":{
"name":"GitasdjwqaikHubasdqw",
"email":"noreply@gitskcaskadahuqwdqbqwdqaw.com",
"username":"wdkcszjkcsebwdqwdfqwdawsldqodqw"
},
"added":[

],
"removed":[

],
"modified":[
"a.json",
"A1.json",
"A1.json"
]
}
],
"head_commit":{
"id":"34c07bcbf557413cf42b601c1794c87db8c321d1",
"tree_id":"5a6d71393611718b8576f8a63cdd34ce619f17dd",
"distinct":true,
"message":"sadwad from xxxxxxxxxxxxxxx/IH-5942-Pipeline-Change\n\nIh 5asdsazdapeline change",
"timestamp":"2024-08-12T13:32:45-05:00",
"url":"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/3weweeeeeeeee,
"author":{
"name":"askjas",
"email":"101218171+asfsfgwsrsd@users.noreply.github.com",
"username":"asdwasdcqwasfdc-qwgbhvcfawdqxaiwdaszxc"
},
"committer":{
"name":"GsdzvcweditHuscwsab",
"email":"noreply@gitasdcwedhub.com",
"username":"wefczeb-fwefvdszlow"
},
"added":[

],
"removed":[

],
"modified":[
"zzzzzzz.json",
"Azzzzz.json",
"zzzz.json"
]
}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 23 Aug 2024 23:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697177#M236866</guid>
      <dc:creator>premrajvs</dc:creator>
      <dc:date>2024-08-23T23:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: sPath command Missing random few values from JSON Array</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697187#M236868</link>
      <description>&lt;P&gt;Assuming you wanted to say&lt;/P&gt;&lt;PRE&gt;path=commits{}.id&lt;/PRE&gt;&lt;P&gt;it seems to work for me.&lt;/P&gt;&lt;PRE&gt;| makeresults &lt;BR /&gt;| eval _raw="{&lt;BR /&gt;\"ref\":\"refs/heads/Dev\",&lt;BR /&gt;\"before\":\"d53e9b3cb6cde4253e05019295a840d394a7bcb0\",&lt;BR /&gt;\"after\":\"34c07bcbf557413cf42b601c1794c87db8c321d1\",&lt;BR /&gt;\"commits\":[&lt;BR /&gt;{&lt;BR /&gt;\"id\":\"a5c816a817d06e592d2b70cd8a088d1519f2d720\",&lt;BR /&gt;\"tree_id\":\"15e930e14d4c62aae47a3c02c47eb24c65d11807\",&lt;BR /&gt;\"distinct\":false,&lt;BR /&gt;\"message\":\"rrrrrrrrrrrrrrrrrrrrrr\",&lt;BR /&gt;\"timestamp\":\"2024-08-12T12:00:04-05:00\",&lt;BR /&gt;\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/aaaaaaaaaaaa\",&lt;BR /&gt;\"author\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"committer\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"added\":[],&lt;BR /&gt;\"removed\":[],&lt;BR /&gt;\"modified\":[\"asdafasdad.json\"]},&lt;BR /&gt;{&lt;BR /&gt;\"id\":\"a3b3b6f728ccc0eb9113e7db723fbfc4ad220882\",&lt;BR /&gt;\"tree_id\":\"3586aeb0a33dc5e236cb266c948f83ff01320a9a\",&lt;BR /&gt;\"distinct\":false,&lt;BR /&gt;\"message\":\"xxxxxxxxxxxxxxxxxxx\",&lt;BR /&gt;\"timestamp\":\"2024-08-12T12:05:40-05:00\",&lt;BR /&gt;\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/a3b3b6f728ccc0eb9113e7db723fbfc4ad220...\",&lt;BR /&gt;\"author\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"committer\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"added\":[],&lt;BR /&gt;\"removed\":[],&lt;BR /&gt;\"modified\":[ \"sddddddf.json\"]},&lt;BR /&gt;{&lt;BR /&gt;\"id\":\"bdcd242d6854365ddfeae6b4f86cf7bc1766e028\",&lt;BR /&gt;\"tree_id\":\"8286c537f7dee57395f44875ddb8b2cdb7dd48b2\",&lt;BR /&gt;\"distinct\":false,&lt;BR /&gt;\"message\":\"Updating pipeline: pl_gwp_file_landing_check. Adding Sylvan Performance\",&lt;BR /&gt;\"timestamp\":\"2024-08-12T12:06:10-05:00\",&lt;BR /&gt;\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/bdcd242d6854365ddfeae6b4f86cf7bc1766e...\",&lt;BR /&gt;\"author\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"committer\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"added\":[],&lt;BR /&gt;\"removed\":[],&lt;BR /&gt;\"modified\":[ \"asadwefvdx.json\"]},&lt;BR /&gt;{&lt;BR /&gt;\"id\":\"108ebd4ff8ae9dd70e669e2ca49e293684d5c37a\",&lt;BR /&gt;\"tree_id\":\"5a6d71393611718b8576f8a63cdd34ce619f17dd\",&lt;BR /&gt;\"distinct\":false,&lt;BR /&gt;\"message\":\"asdrwerwq\",&lt;BR /&gt;\"timestamp\":\"2024-08-12T10:09:33-07:00\",&lt;BR /&gt;\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/108ebd4ff8ae9dd70e669e2ca49e293684d5c...\",&lt;BR /&gt;\"author\":{&lt;BR /&gt;\"name\":\"dfsd\",&lt;BR /&gt;\"email\":\"l.llllllllllll@aaaaaa.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"committer\":{&lt;BR /&gt;\"name\":\"lllllllllllll\",&lt;BR /&gt;\"email\":\"l.llllllllllll@abc.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"added\":[],&lt;BR /&gt;\"removed\":[],&lt;BR /&gt;\"modified\":[\"A.json\",\"A.json\",\"A.json\"]},{&lt;BR /&gt;\"id\":\"34c07bcbf557413cf42b601c1794c87db8c321d1\",&lt;BR /&gt;\"tree_id\":\"5a6d71393611718b8576f8a63cdd34ce619f17dd\",&lt;BR /&gt;\"distinct\":true,&lt;BR /&gt;\"message\":\"asadasd\",&lt;BR /&gt;\"timestamp\":\"2024-08-12T13:32:45-05:00\",&lt;BR /&gt;\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/34c07bcbf557413cf42b601c1794c87db8c32...\",&lt;BR /&gt;\"author\":{&lt;BR /&gt;\"name\":\"aaaaaa aaaaaa\",&lt;BR /&gt;\"email\":\"101218171+aaaaaa@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"aaaaaa\"},&lt;BR /&gt;\"committer\":{&lt;BR /&gt;\"name\":\"GitasdjwqaikHubasdqw\",&lt;BR /&gt;\"email\":\"noreply@gitskcaskadahuqwdqbqwdqaw.com\",&lt;BR /&gt;\"username\":\"wdkcszjkcsebwdqwdfqwdawsldqodqw\"},&lt;BR /&gt;\"added\":[],&lt;BR /&gt;\"removed\":[],&lt;BR /&gt;\"modified\":[ \"a.json\", \"A1.json\", \"A1.json\"]}],&lt;BR /&gt;\"head_commit\":{&lt;BR /&gt;\"id\":\"34c07bcbf557413cf42b601c1794c87db8c321d1\",&lt;BR /&gt;\"tree_id\":\"5a6d71393611718b8576f8a63cdd34ce619f17dd\",&lt;BR /&gt;\"distinct\":true,&lt;BR /&gt;\"message\":\"sadwad from xxxxxxxxxxxxxxx/IH-5942-Pipeline-Change\n\nIh 5asdsazdapeline change\",&lt;BR /&gt;\"timestamp\":\"2024-08-12T13:32:45-05:00\",&lt;BR /&gt;\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/3weweeeeeeeee\",&lt;BR /&gt;\"author\":{&lt;BR /&gt;\"name\":\"askjas\",&lt;BR /&gt;\"email\":\"101218171+asfsfgwsrsd@users.noreply.github.com\",&lt;BR /&gt;\"username\":\"asdwasdcqwasfdc-qwgbhvcfawdqxaiwdaszxc\" },&lt;BR /&gt;\"committer\":{&lt;BR /&gt;\"name\":\"GsdzvcweditHuscwsab\",&lt;BR /&gt;\"email\":\"noreply@gitasdcwedhub.com\",&lt;BR /&gt;\"username\":\"wefczeb-fwefvdszlow\"},&lt;BR /&gt;\"added\":[],&lt;BR /&gt;\"removed\":[],&lt;BR /&gt;\"modified\":[\"zzzzzzz.json\",\"Azzzzz.json\",\"zzzz.json\" ]}}" &lt;BR /&gt;| spath output=commit_id path=commits{}.id | table commit_id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;shows 5 values&lt;/P&gt;&lt;P&gt;Splunk 9.3.0&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 22:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697187#M236868</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-08-23T22:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: sPath command Missing random few values from JSON Array</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697195#M236872</link>
      <description>&lt;P&gt;In addition to mistaken path notation ({} for array) as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;, you also do not need an extra spath if all you want is a multivalued field named commit_id. &amp;nbsp;Splunk should have taken care of extraction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=XXXXX source="http:github-dev-token" eventtype="GitHub::Push" sourcetype="json_ae_git-webhook"
| rename commits{}.id as commit_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a full emulation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=json data="[{
\"ref\":\"refs/heads/Dev\",
\"before\":\"d53e9b3cb6cde4253e05019295a840d394a7bcb0\",
\"after\":\"34c07bcbf557413cf42b601c1794c87db8c321d1\",
\"commits\":[
{
\"id\":\"a5c816a817d06e592d2b70cd8a088d1519f2d720\",
\"tree_id\":\"15e930e14d4c62aae47a3c02c47eb24c65d11807\",
\"distinct\":false,
\"message\":\"rrrrrrrrrrrrrrrrrrrrrr\",
\"timestamp\":\"2024-08-12T12:00:04-05:00\",
\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/aaaaaaaaaaaa\",
\"author\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"committer\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"added\":[],
\"removed\":[],
\"modified\":[\"asdafasdad.json\"]},
{
\"id\":\"a3b3b6f728ccc0eb9113e7db723fbfc4ad220882\",
\"tree_id\":\"3586aeb0a33dc5e236cb266c948f83ff01320a9a\",
\"distinct\":false,
\"message\":\"xxxxxxxxxxxxxxxxxxx\",
\"timestamp\":\"2024-08-12T12:05:40-05:00\",
\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/a3b3b6f728ccc0eb9113e7db723fbfc4ad220...\",
\"author\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"committer\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"added\":[],
\"removed\":[],
\"modified\":[ \"sddddddf.json\"]},
{
\"id\":\"bdcd242d6854365ddfeae6b4f86cf7bc1766e028\",
\"tree_id\":\"8286c537f7dee57395f44875ddb8b2cdb7dd48b2\",
\"distinct\":false,
\"message\":\"Updating pipeline: pl_gwp_file_landing_check. Adding Sylvan Performance\",
\"timestamp\":\"2024-08-12T12:06:10-05:00\",
\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/bdcd242d6854365ddfeae6b4f86cf7bc1766e...\",
\"author\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"committer\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"added\":[],
\"removed\":[],
\"modified\":[ \"asadwefvdx.json\"]},
{
\"id\":\"108ebd4ff8ae9dd70e669e2ca49e293684d5c37a\",
\"tree_id\":\"5a6d71393611718b8576f8a63cdd34ce619f17dd\",
\"distinct\":false,
\"message\":\"asdrwerwq\",
\"timestamp\":\"2024-08-12T10:09:33-07:00\",
\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/108ebd4ff8ae9dd70e669e2ca49e293684d5c...\",
\"author\":{
\"name\":\"dfsd\",
\"email\":\"l.llllllllllll@aaaaaa.com\",
\"username\":\"aaaaaa\"},
\"committer\":{
\"name\":\"lllllllllllll\",
\"email\":\"l.llllllllllll@abc.com\",
\"username\":\"aaaaaa\"},
\"added\":[],
\"removed\":[],
\"modified\":[\"A.json\",\"A.json\",\"A.json\"]},{
\"id\":\"34c07bcbf557413cf42b601c1794c87db8c321d1\",
\"tree_id\":\"5a6d71393611718b8576f8a63cdd34ce619f17dd\",
\"distinct\":true,
\"message\":\"asadasd\",
\"timestamp\":\"2024-08-12T13:32:45-05:00\",
\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/34c07bcbf557413cf42b601c1794c87db8c32...\",
\"author\":{
\"name\":\"aaaaaa aaaaaa\",
\"email\":\"101218171+aaaaaa@users.noreply.github.com\",
\"username\":\"aaaaaa\"},
\"committer\":{
\"name\":\"GitasdjwqaikHubasdqw\",
\"email\":\"noreply@gitskcaskadahuqwdqbqwdqaw.com\",
\"username\":\"wdkcszjkcsebwdqwdfqwdawsldqodqw\"},
\"added\":[],
\"removed\":[],
\"modified\":[ \"a.json\", \"A1.json\", \"A1.json\"]}],
\"head_commit\":{
\"id\":\"34c07bcbf557413cf42b601c1794c87db8c321d1\",
\"tree_id\":\"5a6d71393611718b8576f8a63cdd34ce619f17dd\",
\"distinct\":true,
\"message\":\"sadwad from xxxxxxxxxxxxxxx/IH-5942-Pipeline-Change\n\nIh 5asdsazdapeline change\",
\"timestamp\":\"2024-08-12T13:32:45-05:00\",
\"url\":\"https://github.com/xxxxxxxxxxxxxxx/AzureWorkload_A00008/commit/3weweeeeeeeee\",
\"author\":{
\"name\":\"askjas\",
\"email\":\"101218171+asfsfgwsrsd@users.noreply.github.com\",
\"username\":\"asdwasdcqwasfdc-qwgbhvcfawdqxaiwdaszxc\" },
\"committer\":{
\"name\":\"GsdzvcweditHuscwsab\",
\"email\":\"noreply@gitasdcwedhub.com\",
\"username\":\"wefczeb-fwefvdszlow\"},
\"added\":[],
\"removed\":[],
\"modified\":[\"zzzzzzz.json\",\"Azzzzz.json\",\"zzzz.json\" ]}}]"
| spath
``` the above emulates
index=XXXXX source="http:github-dev-token" eventtype="GitHub::Push" sourcetype="json_ae_git-webhook"
```
| rename commits{}.id as commit_id
| table commit_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;commit_id&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;a5c816a817d06e592d2b70cd8a088d1519f2d720&lt;/DIV&gt;&lt;DIV class=""&gt;a3b3b6f728ccc0eb9113e7db723fbfc4ad220882&lt;/DIV&gt;&lt;DIV class=""&gt;bdcd242d6854365ddfeae6b4f86cf7bc1766e028&lt;/DIV&gt;&lt;DIV class=""&gt;108ebd4ff8ae9dd70e669e2ca49e293684d5c37a&lt;/DIV&gt;&lt;DIV class=""&gt;34c07bcbf557413cf42b601c1794c87db8c321d1&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 24 Aug 2024 03:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697195#M236872</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-08-24T03:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: sPath command Missing random few values from JSON Array</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697306#M236893</link>
      <description>&lt;P&gt;Thank you for all the inputs. Here is the final query&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=Github_Webhook source="http:github-dev-token" eventtype="GitHub::Push" sourcetype="json_ae_git-webhook"
| rename repository.name as RepoName
| spath path=commits{} output=commitscollection
| mvexpand commitscollection
| fields _time RepoName commitscollection
| spath input=commitscollection
| table RepoName id added{} modified{} removed{} author.name author.email message&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;| spath path=commits{} output=commitscollection --&amp;gt; Thanks to all the responders. This helps in getting the commits from array&lt;/P&gt;
&lt;P&gt;Next challenge is, if you pull the data for all the other fields in the same approach, each of those values cannot be mapped with each other. To address this, we should use mvexpand to split them into separate array events&lt;/P&gt;
&lt;P&gt;Once the array is split into separate events, now, we will use the same logic to split the data into events.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 14:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sPath-command-Missing-random-few-values-from-JSON-Array/m-p/697306#M236893</guid>
      <dc:creator>premrajvs</dc:creator>
      <dc:date>2024-08-26T14:33:24Z</dc:date>
    </item>
  </channel>
</rss>

