{"id":4187,"date":"2023-11-04T23:14:07","date_gmt":"2023-11-04T23:14:07","guid":{"rendered":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/"},"modified":"2023-11-05T05:47:57","modified_gmt":"2023-11-05T05:47:57","slug":"logging-your-application-using-amazon-cloudwatch-logs","status":"publish","type":"post","link":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/","title":{"rendered":"Logging your application using Amazon CloudWatch Logs"},"content":{"rendered":"

When developing and running applications, logging is an essential part of monitoring and debugging. Amazon CloudWatch Logs is a service provided by AWS that allows you to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, and other AWS services.<\/p>\n

In this tutorial, we will discuss how to set up and use Amazon CloudWatch Logs to monitor and store log files from your applications. This tutorial assumes that you already have an AWS account and are familiar with basic AWS concepts.<\/p>\n

Step 1: Create a CloudWatch Logs group<\/h2>\n

A log group is a named collection of log streams that share the same retention, monitoring, and access control settings. To create a log group, follow these steps:<\/p>\n

    \n
  1. Open the CloudWatch console at https:\/\/console.aws.amazon.com\/cloudwatch\/.<\/li>\n
  2. In the navigation pane, choose “Log groups”.<\/li>\n
  3. Choose “Create log group”.<\/li>\n
  4. In the “Create log group” dialog box, enter a name for the log group.<\/li>\n
  5. Choose “Create log group”.<\/li>\n<\/ol>\n

    You have now created a log group, which is a container for your log streams.<\/p>\n

    Step 2: Create a CloudWatch Logs stream<\/h2>\n

    A log stream is a sequence of log events that share the same source. Each log stream belongs to a single log group. To create a log stream, follow these steps:<\/p>\n

      \n
    1. Open the CloudWatch console at https:\/\/console.aws.amazon.com\/cloudwatch\/.<\/li>\n
    2. In the navigation pane, choose “Log groups”.<\/li>\n
    3. Choose the log group that you created in Step 1.<\/li>\n
    4. Choose “Create log stream”.<\/li>\n
    5. In the “Create log stream” dialog box, enter a name for the log stream.<\/li>\n
    6. Choose “Create log stream”.<\/li>\n<\/ol>\n

      You have now created a log stream, which is a sequence of log events that share the same source.<\/p>\n

      Step 3: Configure your application to send log data to CloudWatch Logs<\/h2>\n

      There are several ways to send log data to CloudWatch Logs, depending on your application architecture and programming language. Here are some examples:<\/p>\n

      Using AWS SDK for Java<\/h3>\n
      \/\/ Create a CloudWatchLogs client\nAWSLogsClientBuilder builder = AWSLogsClientBuilder.standard();\nAWSLogs client = builder.build();\n\n\/\/ Create a log event\nInputLogEvent logEvent = new InputLogEvent().withTimestamp(timestamp).withMessage(message);\n\n\/\/ Create a log stream\nCreateLogStreamRequest createLogStreamRequest = new CreateLogStreamRequest();\ncreateLogStreamRequest.setLogGroupName(logGroupName);\ncreateLogStreamRequest.setLogStreamName(logStreamName);\nclient.createLogStream(createLogStreamRequest);\n\n\/\/ Put the log event into the log stream\nPutLogEventsRequest putLogEventsRequest = new PutLogEventsRequest();\nputLogEventsRequest.setLogGroupName(logGroupName);\nputLogEventsRequest.setLogStreamName(logStreamName);\nputLogEventsRequest.setLogEvents(Arrays.asList(logEvent));\nclient.putLogEvents(putLogEventsRequest);\n<\/code><\/pre>\n

      Using AWS SDK for Python<\/h3>\n
      # Create a CloudWatchLogs client\nlogs = boto3.client('logs')\n\n# Create a log event\nlog_event = {\n    'timestamp': timestamp,\n    'message': message\n}\n\n# Create a log stream\nlogs.create_log_stream(logGroupName=log_group_name, logStreamName=log_stream_name)\n\n# Put the log event into the log stream\nlogs.put_log_events(logGroupName=log_group_name, logStreamName=log_stream_name, logEvents=[log_event])\n<\/code><\/pre>\n

      Using AWS SDK for Ruby<\/h3>\n
      # Create a CloudWatchLogs client\nlogs = Aws::CloudWatchLogs::Client.new\n\n# Create a log event\nlog_event = {\n    timestamp: timestamp,\n    message: message\n}\n\n# Create a log stream\nlogs.create_log_stream(log_group_name: log_group_name, log_stream_name: log_stream_name)\n\n# Put the log event into the log stream\nlogs.put_log_events(log_group_name: log_group_name, log_stream_name: log_stream_name, log_events: [log_event])\n<\/code><\/pre>\n

      Using AWS SDK for .NET<\/h3>\n
      \/\/ Create a CloudWatchLogs client\nvar client = new AmazonCloudWatchLogsClient();\n\n\/\/ Create a log event\nvar logEvent = new InputLogEvent\n{\n    Timestamp = timestamp,\n    Message = message\n};\n\n\/\/ Create a log stream\nclient.CreateLogStream(new CreateLogStreamRequest\n{\n    LogGroupName = logGroupName,\n    LogStreamName = logStreamName\n});\n\n\/\/ Put the log event into the log stream\nclient.PutLogEvents(new PutLogEventsRequest\n{\n    LogGroupName = logGroupName,\n    LogStreamName = logStreamName,\n    LogEvents = new List<InputLogEvent> { logEvent }\n});\n<\/code><\/pre>\n

      Choose the appropriate programming language and AWS SDK for your application, and replace the variables with your own values. Once you have configured your application to send log data to CloudWatch Logs, it is time to test it.<\/p>\n

      Step 4: Test your application logging<\/h2>\n

      To test your application logging, run your application and generate some log data. You can use a test application or modify your production application to add logging statements.<\/p>\n

      After your application generates some log data, check the CloudWatch Logs console to see if the log data has been received. Follow these steps:<\/p>\n

        \n
      1. Open the CloudWatch console at https:\/\/console.aws.amazon.com\/cloudwatch\/.<\/li>\n
      2. In the navigation pane, choose “Log groups”.<\/li>\n
      3. Choose the log group that you created in Step 1.<\/li>\n
      4. Choose the log stream that you created in Step 2.<\/li>\n
      5. In the log stream, you should see the log events that your application generated.<\/li>\n<\/ol>\n

        Congratulations! You have successfully configured your application to send log data to CloudWatch Logs and tested it.<\/p>\n

        Step 5: Set up log metric filters<\/h2>\n

        Log metric filters allow you to extract data from your log events and emit custom metrics based on that data. For example, you can set up a log metric filter to count the number of error messages in your application logs.<\/p>\n

        To set up a log metric filter, follow these steps:<\/p>\n

          \n
        1. Open the CloudWatch console at https:\/\/console.aws.amazon.com\/cloudwatch\/.<\/li>\n
        2. In the navigation pane, choose “Log groups”.<\/li>\n
        3. Choose the log group that you created in Step 1.<\/li>\n
        4. Choose “Create metric filter”.<\/li>\n
        5. In the “Create metric filter” dialog box, enter a name for the metric filter and a filter pattern.<\/li>\n
        6. Define the metric filter pattern. For example, the following filter pattern counts the number of error messages in your log events: <\/li>\n<\/ol>\n
          [timestamp,severity=\"ERROR\",...]\n<\/code><\/pre>\n
            \n
          1. Choose “Create filter”.<\/li>\n<\/ol>\n

            You have now set up a metric filter that will emit custom metrics based on the data in your log events.<\/p>\n

            Step 6: Create CloudWatch Alarms<\/h2>\n

            CloudWatch Alarms allow you to set up notifications based on metrics, including the custom metrics that you created in Step 5. For example, you can set up an alarm that notifies you when there are more than 10 error messages in your log events.<\/p>\n

            To create a CloudWatch alarm, follow these steps:<\/p>\n

              \n
            1. Open the CloudWatch console at https:\/\/console.aws.amazon.com\/cloudwatch\/.<\/li>\n
            2. In the navigation pane, choose “Alarms”.<\/li>\n
            3. Choose “Create alarm”.<\/li>\n
            4. Define the alarm conditions, such as the metric to monitor and the threshold.<\/li>\n
            5. Define the alarm actions, such as sending an email notification or triggering an AWS Lambda function.<\/li>\n
            6. Choose “Create alarm”.<\/li>\n<\/ol>\n

              You have now set up a CloudWatch alarm that will notify you when the conditions of the alarm are met.<\/p>\n

              Conclusion<\/h2>\n

              In this tutorial, we discussed how to set up and use Amazon CloudWatch Logs to monitor and store log files from your applications. We covered how to create a CloudWatch Logs group and stream, how to configure your application to send log data to CloudWatch Logs, how to test your application logging, how to set up log metric filters, and how to create CloudWatch Alarms.<\/p>\n

              By using Amazon CloudWatch Logs, you can gain visibility into your application logs and quickly identify and respond to issues before they become critical.<\/p>\n","protected":false},"excerpt":{"rendered":"

              When developing and running applications, logging is an essential part of monitoring and debugging. Amazon CloudWatch Logs is a service provided by AWS that allows you to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, and other AWS services. In this tutorial, we will discuss Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[1612,1613,832,1615,1614,1611],"yoast_head":"\nLogging your application using Amazon CloudWatch Logs - Pantherax Blogs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logging your application using Amazon CloudWatch Logs\" \/>\n<meta property=\"og:description\" content=\"When developing and running applications, logging is an essential part of monitoring and debugging. Amazon CloudWatch Logs is a service provided by AWS that allows you to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, and other AWS services. In this tutorial, we will discuss Continue Reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\" \/>\n<meta property=\"og:site_name\" content=\"Pantherax Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T23:14:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-05T05:47:57+00:00\" \/>\n<meta name=\"author\" content=\"Panther\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Panther\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t \"@context\": \"https:\/\/schema.org\",\n\t \"@graph\": [\n\t {\n\t \"@type\": \"Article\",\n\t \"@id\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/#article\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\"\n\t },\n\t \"author\": {\n\t \"name\": \"Panther\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\"\n\t },\n\t \"headline\": \"Logging your application using Amazon CloudWatch Logs\",\n\t \"datePublished\": \"2023-11-04T23:14:07+00:00\",\n\t \"dateModified\": \"2023-11-05T05:47:57+00:00\",\n\t \"mainEntityOfPage\": {\n\t \"@id\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\"\n\t },\n\t \"wordCount\": 869,\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"keywords\": [\n\t \"\\\"Amazon CloudWatch Logs\\\"\",\n\t \"\\\"application logging\\\"\",\n\t \"\\\"application monitoring\\\"]\",\n\t \"\\\"cloud logging\\\"\",\n\t \"\\\"log management\\\"\",\n\t \"[\\\"logging\\\"\"\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"WebPage\",\n\t \"@id\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\",\n\t \"url\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\",\n\t \"name\": \"Logging your application using Amazon CloudWatch Logs - Pantherax Blogs\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#website\"\n\t },\n\t \"datePublished\": \"2023-11-04T23:14:07+00:00\",\n\t \"dateModified\": \"2023-11-05T05:47:57+00:00\",\n\t \"breadcrumb\": {\n\t \"@id\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/#breadcrumb\"\n\t },\n\t \"inLanguage\": \"en-US\",\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"ReadAction\",\n\t \"target\": [\n\t \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/\"\n\t ]\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"BreadcrumbList\",\n\t \"@id\": \"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/#breadcrumb\",\n\t \"itemListElement\": [\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 1,\n\t \"name\": \"Home\",\n\t \"item\": \"http:\/\/localhost:10003\/\"\n\t },\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 2,\n\t \"name\": \"Logging your application using Amazon CloudWatch Logs\"\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"WebSite\",\n\t \"@id\": \"http:\/\/localhost:10003\/#website\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"description\": \"\",\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"SearchAction\",\n\t \"target\": {\n\t \"@type\": \"EntryPoint\",\n\t \"urlTemplate\": \"http:\/\/localhost:10003\/?s={search_term_string}\"\n\t },\n\t \"query-input\": \"required name=search_term_string\"\n\t }\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"Organization\",\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"logo\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\",\n\t \"url\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"contentUrl\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"width\": 1024,\n\t \"height\": 1024,\n\t \"caption\": \"Pantherax Blogs\"\n\t },\n\t \"image\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\"\n\t }\n\t },\n\t {\n\t \"@type\": \"Person\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\",\n\t \"name\": \"Panther\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"contentUrl\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"caption\": \"Panther\"\n\t },\n\t \"sameAs\": [\n\t \"http:\/\/localhost:10003\"\n\t ],\n\t \"url\": \"http:\/\/localhost:10003\/author\/pepethefrog\/\"\n\t }\n\t ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Logging your application using Amazon CloudWatch Logs - Pantherax Blogs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/","og_locale":"en_US","og_type":"article","og_title":"Logging your application using Amazon CloudWatch Logs","og_description":"When developing and running applications, logging is an essential part of monitoring and debugging. Amazon CloudWatch Logs is a service provided by AWS that allows you to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, and other AWS services. In this tutorial, we will discuss Continue Reading","og_url":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/","og_site_name":"Pantherax Blogs","article_published_time":"2023-11-04T23:14:07+00:00","article_modified_time":"2023-11-05T05:47:57+00:00","author":"Panther","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Panther","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/#article","isPartOf":{"@id":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/"},"author":{"name":"Panther","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7"},"headline":"Logging your application using Amazon CloudWatch Logs","datePublished":"2023-11-04T23:14:07+00:00","dateModified":"2023-11-05T05:47:57+00:00","mainEntityOfPage":{"@id":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/"},"wordCount":869,"publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"keywords":["\"Amazon CloudWatch Logs\"","\"application logging\"","\"application monitoring\"]","\"cloud logging\"","\"log management\"","[\"logging\""],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/","url":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/","name":"Logging your application using Amazon CloudWatch Logs - Pantherax Blogs","isPartOf":{"@id":"http:\/\/localhost:10003\/#website"},"datePublished":"2023-11-04T23:14:07+00:00","dateModified":"2023-11-05T05:47:57+00:00","breadcrumb":{"@id":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/localhost:10003\/logging-your-application-using-amazon-cloudwatch-logs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost:10003\/"},{"@type":"ListItem","position":2,"name":"Logging your application using Amazon CloudWatch Logs"}]},{"@type":"WebSite","@id":"http:\/\/localhost:10003\/#website","url":"http:\/\/localhost:10003\/","name":"Pantherax Blogs","description":"","publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost:10003\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/localhost:10003\/#organization","name":"Pantherax Blogs","url":"http:\/\/localhost:10003\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/","url":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","contentUrl":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","width":1024,"height":1024,"caption":"Pantherax Blogs"},"image":{"@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7","name":"Panther","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","caption":"Panther"},"sameAs":["http:\/\/localhost:10003"],"url":"http:\/\/localhost:10003\/author\/pepethefrog\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/4187"}],"collection":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/comments?post=4187"}],"version-history":[{"count":1,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/4187\/revisions"}],"predecessor-version":[{"id":4363,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/4187\/revisions\/4363"}],"wp:attachment":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/media?parent=4187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/categories?post=4187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/tags?post=4187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}