Accessing values in JSON arrayHow to parse mixed text and JSON log entries in AWS CloudWatch for Log Metric FilterSearch AWS CloudWatch Logs with special character in JSON property nameCloudwatch Metric showing wrong valueCount unique values in aws cloudwatch metricAWS cloudwatch logs not extracting timestamp from compact json formatcloudwatch metric Filter Pattern doesn't match with the json logsShow CloudWatch JSON properties in columnAWS Cloudwatch Json Metric Filter PatternAmazon Cloudwatch Logs Insights with JSON fieldsGet count of array items in a JSON log file

Non-flat partitions of a set

Should I submit original or copy of my passport to Canadian embassy for an immigration application?

Cut the gold chain

How is hair tissue mineral analysis performed?

What did River say when she woke from her proto-comatose state?

Can there be an UN resolution to remove a country from the UNSC?

What does the hyphen "-" mean in "tar xzf -"?

Same EPSG code for different objects

What's currently blocking the construction of the wall between Mexico and the US?

When to remove insignificant variables?

Concurrent normals conjecture

How to find the last non zero element in every column throughout dataframe?

Why does this method with an optional parameter not override the base class method?

If I wouldn't want to read the story, is writing it still a good idea?

Hot coffee brewing solutions for deep woods camping

What can I do with a research project that is my university’s intellectual property?

What is the legal status of travelling with methadone in your carry-on?

Count All Possible Unique Combinations of Letters in a Word

Can Ogre clerics use Purify Food and Drink on humanoid characters?

How many people are necessary to maintain modern civilisation?

Is there a way, while dragging, to "snap" to the nearest guide?

What's the difference between a deep fryer and a chip pan?

Is it damaging to turn off a small fridge for two days every week?

Is it illegal to withhold someone's passport and green card in California?



Accessing values in JSON array


How to parse mixed text and JSON log entries in AWS CloudWatch for Log Metric FilterSearch AWS CloudWatch Logs with special character in JSON property nameCloudwatch Metric showing wrong valueCount unique values in aws cloudwatch metricAWS cloudwatch logs not extracting timestamp from compact json formatcloudwatch metric Filter Pattern doesn't match with the json logsShow CloudWatch JSON properties in columnAWS Cloudwatch Json Metric Filter PatternAmazon Cloudwatch Logs Insights with JSON fieldsGet count of array items in a JSON log file






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am following the instruction in the documentation for how to access JSON values in CloudWatch Insights where the recomendation is as follows



JSON arrays are flattened into a list of field names and values. For example, to specify the value of instanceId for the first item in requestParameters.instancesSet, use requestParameters.instancesSet.items.0.instanceId.


ref
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html



I am trying the following and getting nothing in return. The intellisense autofills up to processList.0 but no further



fields processList.0.vss
| sort @timestamp desc
| limit 1


The JSON I am woking with is



"processList": [

"vss": xxxxx,
"name": "aurora",
"tgid": xxxx,
"vmlimit": "unlimited",
"parentID": 1,
"memoryUsedPc": 16.01,
"cpuUsedPc": 0.01,
"id": xxxxx,
"rss": xxxxx
,

"vss": xxxx,
"name": "aurora",
"tgid": xxxxxx,
"vmlimit": "unlimited",
"parentID": 1,
"memoryUsedPc": 16.01,
"cpuUsedPc": 0.06,
"id": xxxxx,
"rss": xxxxx
]









share|improve this question




























    0















    I am following the instruction in the documentation for how to access JSON values in CloudWatch Insights where the recomendation is as follows



    JSON arrays are flattened into a list of field names and values. For example, to specify the value of instanceId for the first item in requestParameters.instancesSet, use requestParameters.instancesSet.items.0.instanceId.


    ref
    https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html



    I am trying the following and getting nothing in return. The intellisense autofills up to processList.0 but no further



    fields processList.0.vss
    | sort @timestamp desc
    | limit 1


    The JSON I am woking with is



    "processList": [

    "vss": xxxxx,
    "name": "aurora",
    "tgid": xxxx,
    "vmlimit": "unlimited",
    "parentID": 1,
    "memoryUsedPc": 16.01,
    "cpuUsedPc": 0.01,
    "id": xxxxx,
    "rss": xxxxx
    ,

    "vss": xxxx,
    "name": "aurora",
    "tgid": xxxxxx,
    "vmlimit": "unlimited",
    "parentID": 1,
    "memoryUsedPc": 16.01,
    "cpuUsedPc": 0.06,
    "id": xxxxx,
    "rss": xxxxx
    ]









    share|improve this question
























      0












      0








      0








      I am following the instruction in the documentation for how to access JSON values in CloudWatch Insights where the recomendation is as follows



      JSON arrays are flattened into a list of field names and values. For example, to specify the value of instanceId for the first item in requestParameters.instancesSet, use requestParameters.instancesSet.items.0.instanceId.


      ref
      https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html



      I am trying the following and getting nothing in return. The intellisense autofills up to processList.0 but no further



      fields processList.0.vss
      | sort @timestamp desc
      | limit 1


      The JSON I am woking with is



      "processList": [

      "vss": xxxxx,
      "name": "aurora",
      "tgid": xxxx,
      "vmlimit": "unlimited",
      "parentID": 1,
      "memoryUsedPc": 16.01,
      "cpuUsedPc": 0.01,
      "id": xxxxx,
      "rss": xxxxx
      ,

      "vss": xxxx,
      "name": "aurora",
      "tgid": xxxxxx,
      "vmlimit": "unlimited",
      "parentID": 1,
      "memoryUsedPc": 16.01,
      "cpuUsedPc": 0.06,
      "id": xxxxx,
      "rss": xxxxx
      ]









      share|improve this question














      I am following the instruction in the documentation for how to access JSON values in CloudWatch Insights where the recomendation is as follows



      JSON arrays are flattened into a list of field names and values. For example, to specify the value of instanceId for the first item in requestParameters.instancesSet, use requestParameters.instancesSet.items.0.instanceId.


      ref
      https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html



      I am trying the following and getting nothing in return. The intellisense autofills up to processList.0 but no further



      fields processList.0.vss
      | sort @timestamp desc
      | limit 1


      The JSON I am woking with is



      "processList": [

      "vss": xxxxx,
      "name": "aurora",
      "tgid": xxxx,
      "vmlimit": "unlimited",
      "parentID": 1,
      "memoryUsedPc": 16.01,
      "cpuUsedPc": 0.01,
      "id": xxxxx,
      "rss": xxxxx
      ,

      "vss": xxxx,
      "name": "aurora",
      "tgid": xxxxxx,
      "vmlimit": "unlimited",
      "parentID": 1,
      "memoryUsedPc": 16.01,
      "cpuUsedPc": 0.06,
      "id": xxxxx,
      "rss": xxxxx
      ]






      amazon-cloudwatch amazon-cloudwatchlogs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 8:24









      Mark HollasMark Hollas

      60711137




      60711137






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Have you tried the following?



          fields @@timestamp, @processList.0.vss
          | sort @@timestamp desc
          | limit 5


          It may be a syntax error. If not, please post a couple of records worth of the overall structure, with @timestamp included.






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333721%2faccessing-values-in-json-array%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Have you tried the following?



            fields @@timestamp, @processList.0.vss
            | sort @@timestamp desc
            | limit 5


            It may be a syntax error. If not, please post a couple of records worth of the overall structure, with @timestamp included.






            share|improve this answer



























              0














              Have you tried the following?



              fields @@timestamp, @processList.0.vss
              | sort @@timestamp desc
              | limit 5


              It may be a syntax error. If not, please post a couple of records worth of the overall structure, with @timestamp included.






              share|improve this answer

























                0












                0








                0







                Have you tried the following?



                fields @@timestamp, @processList.0.vss
                | sort @@timestamp desc
                | limit 5


                It may be a syntax error. If not, please post a couple of records worth of the overall structure, with @timestamp included.






                share|improve this answer













                Have you tried the following?



                fields @@timestamp, @processList.0.vss
                | sort @@timestamp desc
                | limit 5


                It may be a syntax error. If not, please post a couple of records worth of the overall structure, with @timestamp included.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 10 at 22:15









                talt001talt001

                1




                1





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333721%2faccessing-values-in-json-array%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                    해남서초등학교 학교 연혁 학교 동문 외부 링크 둘러보기 메뉴북위 34° 34′ 21″ 동경 126° 35′ 50″ / 북위 34.5726385° 동경 126.5972670°  / 34.5726385; 126.5972670해남서초등학교eh