<?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 Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701092#M237856</link>
    <description>&lt;P&gt;To ask an answerable data analytics question, follow these golden rules; nay, call them the four commandments:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Illustrate data input (in raw text, anonymize as needed), whether they are raw events or output from a search that volunteers here do not have to look at.&lt;/LI&gt;&lt;LI&gt;Illustrate the desired output from illustrated data.&lt;/LI&gt;&lt;LI&gt;Explain the logic between illustrated data and desired output&amp;nbsp;&lt;EM&gt;without&lt;/EM&gt;&amp;nbsp;SPL.&lt;/LI&gt;&lt;LI&gt;If you also illustrate attempted SPL, illustrate actual output and compare with desired output, explain why they look different&amp;nbsp;&lt;U&gt;to you&lt;/U&gt;&amp;nbsp;if that is not painfully obvious.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let's check.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Your sample data are JSON fragments, not a complete JSON object. &amp;nbsp;Even the last update, no one can tell how deep that structure goes. &amp;nbsp;In other words, which exact JSON path leads to the subnode&amp;nbsp;c7n:MatchedFilters. &amp;nbsp;I understand that your event size is enormous so you cannot show a complete sample. &amp;nbsp;But you should show the complete structure of the object.&lt;/LI&gt;&lt;LI&gt;The phrase "show the count and tagname in tabular format" in the title seems to be an attempt to describe desired output. &amp;nbsp;But there are a thousand ways to show count and tagname in tabular format. &amp;nbsp;What is even a "count" in your text?&lt;/LI&gt;&lt;LI&gt;No description of logic.&lt;/LI&gt;&lt;LI&gt;N/A&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Without these, you are effectively asking volunteers to read your mind. &amp;nbsp;That is not a fair ask.&lt;/P&gt;&lt;P&gt;Now, based on your last update, we can see that&amp;nbsp;c7n:MatchedFilters is not a top node in your raw data. &amp;nbsp;It is a subnode in a very large array. &amp;nbsp;Is this large array a top node of your raw data? &amp;nbsp;If not, how many upper paths are there before we reach c7n:MatchedFilters? &amp;nbsp;Without an exact answer to this, there is no good answer to your question. &amp;nbsp;&lt;SPAN&gt;In the following, I will assume "yes" to this, i.e., I will assume that somekey[c7n:MatchedFilters] is the correct path. (Or, in SPL flattened notation, somekey{}.c7n:MatchedFilters{}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will further assume that&amp;nbsp;"show the count and tagname in tabular format" means to count events grouped by the string following "tag:" in each value of c7n:MatchedFilters. &amp;nbsp;In other words, I assume that this table is what you look for:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;tagName&lt;/TD&gt;&lt;TD&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AccountType&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AppTier&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ApplicationFailoverGroup&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Attributes&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DBNodes&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EnvironmentType&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ImageBuilder&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_aws_native_account_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_cluster_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_component&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_instance_class&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_job_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_managed&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_object&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_restore_source_region&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_restore_timestamp&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_source_snapshot_native_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_source_vm_native_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_source_vm_native_name&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_taskchain_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_user&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_version&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The above count is based on&amp;nbsp;the fragments you pasted. &amp;nbsp;I constructed the following as a valid JSON object to mimic the structure. &amp;nbsp;If this is not the correct structure, you need to go back to the four commandments and start over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"somekey": [
  {
    "AmiLaunchIndex": 0,
    "ImageId": "ami-08435a7e5e61bc00b",
    "InstanceId": "i-0b307f45f965d4222",
    "InstanceType": "r5b.2xlarge",
    "KeyName": "gsus-prod-net-01-key",
    "LaunchTime": "2024-07-19T15:42:09+00:00",
    "Monitoring": {
      "State": "disabled"
    },
    "Placement": {
      "AvailabilityZone": "us-east-1b",
      "GroupName": "",
      "Tenancy": "default"
    },
    "Platform": "windows",
    "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
    "PrivateIpAddress": "172.23.43.196",
    "ProductCodes": [],
    "PublicDnsName": "",
    "State": {
      "Code": 16,
      "Name": "running"
    },
    "StateTransitionReason": "",
    "SubnetId": "subnet-03aa1e87392c5e63d",
    "VpcId": "vpc-0e8954f5da98fe98d",
    "Architecture": "x86_64",
    "BlockDeviceMappings": [
      {
        "DeviceName": "/dev/sda1",
        "Ebs": {
          "AttachTime": "2024-07-19T15:41:21+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0d39da483194fdffa"
        }
      },
      {
        "DeviceName": "/dev/xvdf",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:04+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-07813f09191a4af20"
        }
      },
      {
        "DeviceName": "/dev/xvdg",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-05d213e8588431029"
        }
      },
      {
        "DeviceName": "/dev/xvdh",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-08849724290ff4ff0"
        }
      },
      {
        "DeviceName": "/dev/xvdi",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0711192d14ffdc4ff"
        }
      },
      {
        "DeviceName": "/dev/xvdj",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:25+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0d8db3494a8c7254c"
        }
      },
      {
        "DeviceName": "/dev/xvdk",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:16+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0cba7f29aec3d9a35"
        }
      },
      {
        "DeviceName": "/dev/xvdl",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0810a5ac78ecf0e11"
        }
      },
      {
        "DeviceName": "/dev/xvdm",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0e4ec2b5f1bf4d871"
        }
      },
      {
        "DeviceName": "/dev/xvdn",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-092a40b78baeeac7f"
        }
      },
      {
        "DeviceName": "/dev/xvdo",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:55+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0b1e2d02d509f3f5e"
        }
      },
      {
        "DeviceName": "/dev/xvdp",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-01cabf285c719295f"
        }
      }
    ],
    "ClientToken": "terraform-20230706192857135700000004",
    "EbsOptimized": true,
    "EnaSupport": true,
    "Hypervisor": "xen",
    "IamInstanceProfile": {
      "Arn": "arn:aws:iam::189682858917:instance-profile/hig/WindowsEC2Role",
      "Id": "AIPASYKP2XOSSBXPPW5LL"
    },
    "NetworkInterfaces": [
      {
        "Attachment": {
          "AttachTime": "2023-07-06T19:28:58+00:00",
          "AttachmentId": "eni-attach-09192f2a4fbf5a17d",
          "DeleteOnTermination": false,
          "DeviceIndex": 0,
          "Status": "attached",
          "NetworkCardIndex": 0
        },
        "Description": "",
        "Groups": [
          {
            "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
            "GroupId": "sg-04908349d0f791aec"
          },
          {
            "GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
            "GroupId": "sg-0b214ef19d0a4c0f7"
          },
          {
            "GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
            "GroupId": "sg-0c2f333cbfb09b29f"
          },
          {
            "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
            "GroupId": "sg-0257bb3846318d5fd"
          }
        ],
        "Ipv6Addresses": [],
        "MacAddress": "12:90:ce:a5:ca:a1",
        "NetworkInterfaceId": "eni-0086b400faa99451d",
        "OwnerId": "189682858917",
        "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
        "PrivateIpAddress": "172.23.43.196",
        "PrivateIpAddresses": [
          {
            "Primary": true,
            "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
            "PrivateIpAddress": "172.23.43.196"
          },
          {
            "Primary": false,
            "PrivateDnsName": "ip-172-23-43-163.ec2.internal",
            "PrivateIpAddress": "172.23.43.163"
          },
          {
            "Primary": false,
            "PrivateDnsName": "ip-172-23-43-141.ec2.internal",
            "PrivateIpAddress": "172.23.43.141"
          }
        ],
        "SourceDestCheck": true,
        "Status": "in-use",
        "SubnetId": "subnet-03aa1e87392c5e63d",
        "VpcId": "vpc-0e8954f5da98fe98d",
        "InterfaceType": "interface"
      }
    ],
    "RootDeviceName": "/dev/sda1",
    "RootDeviceType": "ebs",
    "SecurityGroups": [
      {
        "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
        "GroupId": "sg-04908349d0f791aec"
      },
      {
        "GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
        "GroupId": "sg-0b214ef19d0a4c0f7"
      },
      {
        "GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
        "GroupId": "sg-0c2f333cbfb09b29f"
      },
      {
        "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
        "GroupId": "sg-0257bb3846318d5fd"
      }
    ],
    "SourceDestCheck": true,
    "Tags": [
      {
        "Key": "Description",
        "Value": ""
      },
      {
        "Key": "hig-owner",
        "Value": "mahesh.vidyasagar@thehartford.com"
      },
      {
        "Key": "Billing",
        "Value": "APP-4587"
      },
      {
        "Key": "Repository",
        "Value": "https://github.thehartford.com/HIG/gs_tfe_peoplesoft_app4587"
      },
      {
        "Key": "Schedule",
        "Value": "None"
      },
      {
        "Key": "mssql_adou",
        "Value": "OU=SQL-GS,OU=Windows,OU=Cloud,OU=Servers,DC=ad1,DC=prod"
      },
      {
        "Key": "child_module_name",
        "Value": "terraform-aws-ec2-db-mssql"
      },
      {
        "Key": "mssql_instancename",
        "Value": "MSSQLSERVER"
      },
      {
        "Key": "module_name",
        "Value": "terraform-aws-ec2-instance"
      },
      {
        "Key": "Pipeline",
        "Value": "https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/PeopleSoft-4587/job/gsus_4587_peoplesoft_aws_gsprod/"
      },
      {
        "Key": "IMDSv2",
        "Value": "Enabled"
      },
      {
        "Key": "IMDSv2 Date",
        "Value": "07/06/2023, 19:30:24"
      },
      {
        "Key": "PatchGroup",
        "Value": "Multiple DB Node AZ2"
      },
      {
        "Key": "module_version",
        "Value": "v4.0.6"
      },
      {
        "Key": "BackupDBGroup",
        "Value": "ec2-sqldb-prod-silver"
      },
      {
        "Key": "mssql_version",
        "Value": "2019"
      },
      {
        "Key": "AppOwner",
        "Value": "Mahesh Vidyasagar"
      },
      {
        "Key": "hig-planit-appid",
        "Value": "APP-4587-PROD"
      },
      {
        "Key": "ServiceTier",
        "Value": "Silver"
      },
      {
        "Key": "DBNodes",
        "Value": "Secondary"
      },
      {
        "Key": "Hostname",
        "Value": "a4587ue1pwsag06"
      },
      {
        "Key": "mssql_datavolumes",
        "Value": "4"
      },
      {
        "Key": "mssql_installtype",
        "Value": "SAG"
      },
      {
        "Key": "hig-data-classification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "PatchingFlag",
        "Value": "Tag Applied"
      },
      {
        "Key": "Environment",
        "Value": "prod"
      },
      {
        "Key": "Owner",
        "Value": "HIG"
      },
      {
        "Key": "hig-billing",
        "Value": "APP-4587"
      },
      {
        "Key": "mssql_environment",
        "Value": "prod"
      },
      {
        "Key": "Domain",
        "Value": "ad1.prod"
      },
      {
        "Key": "AppName",
        "Value": "PeopleSoft"
      },
      {
        "Key": "ThirdParty",
        "Value": "No"
      },
      {
        "Key": "child_module_version",
        "Value": "v2.2.1"
      },
      {
        "Key": "Hosted Region",
        "Value": "US"
      },
      {
        "Key": "Name",
        "Value": "PeopleSoft-4587-PROD-sag-06"
      },
      {
        "Key": "BackupGroup",
        "Value": "ec2-nobackup"
      },
      {
        "Key": "LOB",
        "Value": "Global Specialty"
      },
      {
        "Key": "Patching Group",
        "Value": "Multiple DB Node AZ1"
      },
      {
        "Key": "backup_s3bucket",
        "Value": "gs-gsus-prod-net-01-sqlbackup-us-east-1"
      },
      {
        "Key": "DynatraceMonitoring",
        "Value": "true"
      },
      {
        "Key": "mssql_collation",
        "Value": "Latin1_General_BIN"
      },
      {
        "Key": "DataClassification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "AppId",
        "Value": "APP-4587"
      },
      {
        "Key": "AppTier",
        "Value": "DB"
      },
      {
        "Key": "hig-environment-type",
        "Value": "PROD"
      },
      {
        "Key": "backup_s3bucketkms",
        "Value": "arn:aws:kms:us-east-1:189682858917:key/e4b94c9a-82ad-4322-98ec-48d610f6548b"
      },
      {
        "Key": "Comments",
        "Value": ""
      }
    ],
    "VirtualizationType": "hvm",
    "CpuOptions": {
      "CoreCount": 4,
      "ThreadsPerCore": 1
    },
    "CapacityReservationSpecification": {
      "CapacityReservationPreference": "open"
    },
    "HibernationOptions": {
      "Configured": false
    },
    "MetadataOptions": {
      "State": "applied",
      "HttpTokens": "required",
      "HttpPutResponseHopLimit": 1,
      "HttpEndpoint": "enabled",
      "HttpProtocolIpv6": "disabled",
      "InstanceMetadataTags": "disabled"
    },
    "EnclaveOptions": {
      "Enabled": false
    },
    "PlatformDetails": "Windows",
    "UsageOperation": "RunInstances:0002",
    "UsageOperationUpdateTime": "2023-07-06T19:28:58+00:00",
    "PrivateDnsNameOptions": {
      "HostnameType": "ip-name",
      "EnableResourceNameDnsARecord": false,
      "EnableResourceNameDnsAAAARecord": false
    },
    "MaintenanceOptions": {
      "AutoRecovery": "default"
    },
    "CurrentInstanceBootMode": "legacy-bios",
    "someOtherStuff": "othervalue",
    "c7n:MatchedFilters": [
      "tag:AccountType",
      "tag:Attributes",
      "tag:EnvironmentType",
      "tag:ImageBuilder"
    ]
  },
  {
    "AmiLaunchIndex": 1,
    "someOtherStuff": "othervalue",
    "c7n:MatchedFilters": [
      "tag:ApplicationFailoverGroup",
      "tag:AppTier",
      "tag:Attributes",
      "tag:DBNodes",
      "tag:rk_aws_native_account_id",
      "tag:rk_cluster_id", "tag:rk_component",
      "tag:rk_instance_class", "tag:rk_job_id",
      "tag:rk_managed", "tag:rk_object",
      "tag:rk_restore_source_region",
      "tag:rk_restore_timestamp",
      "tag:rk_source_snapshot_native_id",
      "tag:rk_source_vm_native_id",
      "tag:rk_source_vm_native_name",
      "tag:rk_taskchain_id",
      "tag:rk_user",
      "tag:rk_version"
    ]
  }
]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I took the valid element from your latest sample, and added the fragment containing the&amp;nbsp;c7n:MatchedFilters key as a second element of top level key somekey. So, the second element does not have all the other keys as they are not of interest to this particular question.&lt;/P&gt;&lt;P&gt;After this construction, I think I get a handle to why the basic technique doesn't work. &amp;nbsp;But let me explain the basic technique first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is assuming that Splunk search head already extracted all fields from raw data, which is the norm. &amp;nbsp;But your raw events are so huge, even that single valid array element you posted is &amp;gt;15KB. &amp;nbsp;Splunk has this default in limits.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[spath]
# Number of characters to read from an XML or JSON event when
# auto extracting.
extraction_cutoff = 5000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can increase this to be larger than the maximum size of your events. &amp;nbsp;But that may require a lot of RAM.&lt;/P&gt;&lt;P&gt;Without touching extraction_cutoff, you can directly reach&amp;nbsp;c7n:MatchedFilters with &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath" target="_blank" rel="noopener"&gt;spath&lt;/A&gt; command. &amp;nbsp;Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath path=somekey{}
| spath input=somekey{} path=c7n:MatchedFilters{} output=tagName
| stats count by tagName
| eval tagName = replace(tagName, "tag:", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Oct 2024 23:29:22 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2024-10-05T23:29:22Z</dc:date>
    <item>
      <title>Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700880#M237779</link>
      <description>&lt;LI-CODE lang="markup"&gt;"c7n:MatchedFilters":
[ "tag:ApplicationFailoverGroup",
"tag:AppTier", "tag:Attributes",
"tag:DBNodes",
"tag:rk_aws_native_account_id",
"tag:rk_cluster_id", "tag:rk_component",
"tag:rk_instance_class", "tag:rk_job_id",
"tag:rk_managed", "tag:rk_object",
"tag:rk_restore_source_region",
"tag:rk_restore_timestamp",
"tag:rk_source_snapshot_native_id",
"tag:rk_source_vm_native_id",
"tag:rk_source_vm_native_name",
"tag:rk_taskchain_id",
"tag:rk_user",
"tag:rk_version" ]&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700880#M237779</guid>
      <dc:creator>Hemant_h</dc:creator>
      <dc:date>2024-10-04T14:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700886#M237782</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath c7n:MatchedFilters{} output=MatchedFilters
| foreach mode=multivalue MatchedFilters
    [| eval MatchedFilters=trim(MatchedFilters,"tag:")]
| chart count over _time by MatchedFilters useother=f&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Oct 2024 13:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700886#M237782</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-03T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700888#M237784</link>
      <description>&lt;P&gt;Getting this result, i dont see tag name in list&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://thehartford.splunkcloud.com/en-US/app/hig_apps_mlc/search?earliest=-24h%40h&amp;amp;latest=now&amp;amp;q=search%20index%3D%22app_gs%22%20source%3D%22app_gs%3A%2Faws%2Flambda%2FAPP-5526-prod-cloudcustodian-lambda*%22%20%0A%7C%20search%20_raw%3D%22*189682858917*%22%0A%0A%7C%20spath%20c7n%3AMatchedFilters%7B%7D%20output%3DMatchedFilters%0A%7C%20foreach%20mode%3Dmultivalue%20MatchedFilters%0A%20%20%20%20%5B%7C%20eval%20MatchedFilters%3Dtrim(MatchedFilters%2C%22tag%3A%22)%5D%0A%7C%20chart%20count%20over%20_time%20by%20MatchedFilters%20useother%3Df&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;display.general.type=statistics&amp;amp;display.page.search.tab=statistics&amp;amp;display.prefs.fieldFilter=&amp;amp;display.events.fields=%5B%22ExecutionStatus%22%2C%22StepDescription%22%2C%22Successful_Logins%22%2C%22Login_Fail%22%2C%22ruleActions%22%2C%22ruleTags%22%2C%22ClientIP%22%2C%22status%22%2C%22client_ip%22%2C%22httpMessage.host%22%2C%22Host%22%2C%22source%22%2C%22sourcetype%22%2C%22index%22%2C%22c7n%3AMatchedFilters%7B%7D%22%2C%22matched_filters%22%2C%22tag%22%2C%22OU%22%2C%22DC%22%5D&amp;amp;sid=1727963204.1630947_DC3C8B7A-87B4-4879-80B9-E42BB06AE3D7#" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;20 Per Page&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;A class="" title="" href="https://thehartford.splunkcloud.com/en-US/app/hig_apps_mlc/search?earliest=-24h%40h&amp;amp;latest=now&amp;amp;q=search%20index%3D%22app_gs%22%20source%3D%22app_gs%3A%2Faws%2Flambda%2FAPP-5526-prod-cloudcustodian-lambda*%22%20%0A%7C%20search%20_raw%3D%22*189682858917*%22%0A%0A%7C%20spath%20c7n%3AMatchedFilters%7B%7D%20output%3DMatchedFilters%0A%7C%20foreach%20mode%3Dmultivalue%20MatchedFilters%0A%20%20%20%20%5B%7C%20eval%20MatchedFilters%3Dtrim(MatchedFilters%2C%22tag%3A%22)%5D%0A%7C%20chart%20count%20over%20_time%20by%20MatchedFilters%20useother%3Df&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;display.general.type=statistics&amp;amp;display.page.search.tab=statistics&amp;amp;display.prefs.fieldFilter=&amp;amp;display.events.fields=%5B%22ExecutionStatus%22%2C%22StepDescription%22%2C%22Successful_Logins%22%2C%22Login_Fail%22%2C%22ruleActions%22%2C%22ruleTags%22%2C%22ClientIP%22%2C%22status%22%2C%22client_ip%22%2C%22httpMessage.host%22%2C%22Host%22%2C%22source%22%2C%22sourcetype%22%2C%22index%22%2C%22c7n%3AMatchedFilters%7B%7D%22%2C%22matched_filters%22%2C%22tag%22%2C%22OU%22%2C%22DC%22%5D&amp;amp;sid=1727963204.1630947_DC3C8B7A-87B4-4879-80B9-E42BB06AE3D7#" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Format&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://thehartford.splunkcloud.com/en-US/app/hig_apps_mlc/search?earliest=-24h%40h&amp;amp;latest=now&amp;amp;q=search%20index%3D%22app_gs%22%20source%3D%22app_gs%3A%2Faws%2Flambda%2FAPP-5526-prod-cloudcustodian-lambda*%22%20%0A%7C%20search%20_raw%3D%22*189682858917*%22%0A%0A%7C%20spath%20c7n%3AMatchedFilters%7B%7D%20output%3DMatchedFilters%0A%7C%20foreach%20mode%3Dmultivalue%20MatchedFilters%0A%20%20%20%20%5B%7C%20eval%20MatchedFilters%3Dtrim(MatchedFilters%2C%22tag%3A%22)%5D%0A%7C%20chart%20count%20over%20_time%20by%20MatchedFilters%20useother%3Df&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;display.general.type=statistics&amp;amp;display.page.search.tab=statistics&amp;amp;display.prefs.fieldFilter=&amp;amp;display.events.fields=%5B%22ExecutionStatus%22%2C%22StepDescription%22%2C%22Successful_Logins%22%2C%22Login_Fail%22%2C%22ruleActions%22%2C%22ruleTags%22%2C%22ClientIP%22%2C%22status%22%2C%22client_ip%22%2C%22httpMessage.host%22%2C%22Host%22%2C%22source%22%2C%22sourcetype%22%2C%22index%22%2C%22c7n%3AMatchedFilters%7B%7D%22%2C%22matched_filters%22%2C%22tag%22%2C%22OU%22%2C%22DC%22%5D&amp;amp;sid=1727963204.1630947_DC3C8B7A-87B4-4879-80B9-E42BB06AE3D7#" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Preview&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;_time NULL &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2024-10-02 15:45:39.507&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-10-02 15:45:39.508&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-10-02 15:45:39.516&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-10-02 15:46:14.196&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-10-02 15:46:14.199&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Oct 2024 13:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700888#M237784</guid>
      <dc:creator>Hemant_h</dc:creator>
      <dc:date>2024-10-03T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700907#M237787</link>
      <description>&lt;P&gt;Probably because you gave an incomplete description of the events you are working with, the fields that have already been extracted, the SPL you used to get those results, and what your expected result should look like. We can only work with what you provide. We do not have access to your environment, so we are guessing most of the time.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 15:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700907#M237787</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-03T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700975#M237812</link>
      <description>&lt;LI-CODE lang="markup"&gt;This is the log and we want the list of tag coming under "c7n:MatchedFilters"
 4844905100000003",
            "GroupId": "sg-016abb0533b5b9082"
          },
          {
            "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
            "GroupId": "sg-0257bb3846318d5fd"
          },
          {
            "GroupName": "gsus-prod-net-01-app-4567-prod-1-web-1-sg",
            "GroupId": "sg-08a32c6c1fd77d74c"
          }
        ],
        "Ipv6Addresses": [],
        "MacAddress": "12:82:2d:d7:0e:77",
        "NetworkInterfaceId": "eni-0cf7cff30aa78de47",
        "OwnerId": "189682858917",
        "PrivateDnsName": "ip-172-23-42-148.ec2.internal",
        "PrivateIpAddress": "172.23.42.148",
        "PrivateIpAddresses": [
          {
            "Primary": true,
            "PrivateDnsName": "ip-172-23-42-148.ec2.internal",
            "PrivateIpAddress": "172.23.42.148"
          }
        ],
        "SourceDestCheck": true,
        "Status": "in-use",
        "SubnetId": "subnet-07a45e67dbf4d63aa",
        "VpcId": "vpc-0e8954f5da98fe98d",
        "InterfaceType": "interface"
      }
    ],
    "RootDeviceName": "/dev/sda1",
    "RootDeviceType": "ebs",
    "SecurityGroups": [
      {
        "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
        "GroupId": "sg-04908349d0f791aec"
      },
      {
        "GroupName": "gsus-prod-net-01-web-sg-20220512164845489300000007",
        "GroupId": "sg-031fac541f8a85381"
      },
      {
        "GroupName": "gsus-prod-net-01-dtc-sg-20220512164844905100000003",
        "GroupId": "sg-016abb0533b5b9082"
      },
      {
        "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
        "GroupId": "sg-0257bb3846318d5fd"
      },
      {
        "GroupName": "gsus-prod-net-01-app-4567-prod-1-web-1-sg",
        "GroupId": "sg-08a32c6c1fd77d74c"
      }
    ],
    "SourceDestCheck": true,
    "Tags": [
      {
        "Key": "Repository",
        "Value": "https://github.thehartford.com/HIG/gs_tfe_servicebus_app4567"
      },
      {
        "Key": "hig-data-classification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "module_name",
        "Value": "terraform-aws-ec2-instance"
      },
      {
        "Key": "BackupGroup",
        "Value": "GSUSProdSilverEC2"
      },
      {
        "Key": "DynatraceMonitoring",
        "Value": "true"
      },
      {
        "Key": "Domain",
        "Value": "ad1.prod"
      },
      {
        "Key": "Comments",
        "Value": ""
      },
      {
        "Key": "hig-billing",
        "Value": "APP-4567"
      },
      {
        "Key": "hig-environment-type",
        "Value": "PROD"
      },
      {
        "Key": "AppTier",
        "Value": "Web"
      },
      {
        "Key": "IMDSv2 Date",
        "Value": "04/24/2023, 16:15:21"
      },
      {
        "Key": "IMDSv2",
        "Value": "Enabled"
      },
      {
        "Key": "Hosted Region",
        "Value": "US"
      },
      {
        "Key": "Owner",
        "Value": "HIG"
      },
      {
        "Key": "Schedule",
        "Value": ""
      },
      {
        "Key": "ServiceTier",
        "Value": "Silver"
      },
      {
        "Key": "Name",
        "Value": "ServiceBus-app-4567-prod-ue1-web02"
      },
      {
        "Key": "DB Nodes",
        "Value": "None"
      },
      {
        "Key": "Description",
        "Value": ""
      },
      {
        "Key": "Hostname",
        "Value": "a4567e1pdweb002"
      },
      {
        "Key": "ThirdParty",
        "Value": "Yes"
      },
      {
        "Key": "OS",
        "Value": "Windows 2016"
      },
      {
        "Key": "module_version",
        "Value": "v4.3.2"
      },
      {
        "Key": "Environment",
        "Value": "PROD"
      },
      {
        "Key": "DataClassification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "AppClass",
        "Value": "Silver"
      },
      {
        "Key": "Lifecycle",
        "Value": "Provisioning"
      },
      {
        "Key": "hig-planit-appid",
        "Value": "APP-4567-PROD"
      },
      {
        "Key": "AppName",
        "Value": "Service Bus"
      },
      {
        "Key": "Billing",
        "Value": "APP-4567"
      },
      {
        "Key": "Pipeline",
        "Value": "https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/ServiceBus-4567/job/gsus_4567_servicebus-ue1_aws_gsprod/"
      },
      {
        "Key": "map-migrated",
        "Value": "d-server-026syrvrlphyig"
      },
      {
        "Key": "PatchingFlag",
        "Value": "Tag Applied"
      },
      {
        "Key": "LOB",
        "Value": "Global Specialty"
      },
      {
        "Key": "AppOwner",
        "Value": "Marty Cabeceiras"
      },
      {
        "Key": "Alias Names",
        "Value": "asbngwebprod02"
      },
      {
        "Key": "AppId",
        "Value": "APP-4567"
      },
      {
        "Key": "hig-owner",
        "Value": "marty.cabeceiras@thehartford.com"
      },
      {
        "Key": "PatchGroup",
        "Value": "Non DB Node B"
      }
    ],
    "VirtualizationType": "hvm",
    "CpuOptions": {
      "CoreCount": 4,
      "ThreadsPerCore": 2
    },
    "CapacityReservationSpecification": {
      "CapacityReservationPreference": "open"
    },
    "HibernationOptions": {
      "Configured": false
    },
    "MetadataOptions": {
      "State": "applied",
      "HttpTokens": "required",
      "HttpPutResponseHopLimit": 1,
      "HttpEndpoint": "enabled",
      "HttpProtocolIpv6": "disabled",
      "InstanceMetadataTags": "disabled"
    },
    "EnclaveOptions": {
      "Enabled": false
    },
    "PlatformDetails": "Windows",
    "UsageOperation": "RunInstances:0002",
    "UsageOperationUpdateTime": "2023-04-24T15:58:42+00:00",
    "PrivateDnsNameOptions": {
      "HostnameType": "ip-name",
      "EnableResourceNameDnsARecord": false,
      "EnableResourceNameDnsAAAARecord": false
    },
    "MaintenanceOptions": {
      "AutoRecovery": "default"
    },
    "CurrentInstanceBootMode": "legacy-bios",
    "c7n:MatchedFilters": [
      "tag:AccountType",
      "tag:Attributes",
      "tag:EnvironmentType",
      "tag:ImageBuilder"
    ]
  },
  {
    "AmiLaunchIndex": 0,
    "ImageId": "ami-08435a7e5e61bc00b",
    "InstanceId": "i-0b307f45f965d4222",
    "InstanceType": "r5b.2xlarge",
    "KeyName": "gsus-prod-net-01-key",
    "LaunchTime": "2024-07-19T15:42:09+00:00",
    "Monitoring": {
      "State": "disabled"
    },
    "Placement": {
      "AvailabilityZone": "us-east-1b",
      "GroupName": "",
      "Tenancy": "default"
    },
    "Platform": "windows",
    "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
    "PrivateIpAddress": "172.23.43.196",
    "ProductCodes": [],
    "PublicDnsName": "",
    "State": {
      "Code": 16,
      "Name": "running"
    },
    "StateTransitionReason": "",
    "SubnetId": "subnet-03aa1e87392c5e63d",
    "VpcId": "vpc-0e8954f5da98fe98d",
    "Architecture": "x86_64",
    "BlockDeviceMappings": [
      {
        "DeviceName": "/dev/sda1",
        "Ebs": {
          "AttachTime": "2024-07-19T15:41:21+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0d39da483194fdffa"
        }
      },
      {
        "DeviceName": "/dev/xvdf",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:04+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-07813f09191a4af20"
        }
      },
      {
        "DeviceName": "/dev/xvdg",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-05d213e8588431029"
        }
      },
      {
        "DeviceName": "/dev/xvdh",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-08849724290ff4ff0"
        }
      },
      {
        "DeviceName": "/dev/xvdi",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0711192d14ffdc4ff"
        }
      },
      {
        "DeviceName": "/dev/xvdj",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:25+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0d8db3494a8c7254c"
        }
      },
      {
        "DeviceName": "/dev/xvdk",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:16+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0cba7f29aec3d9a35"
        }
      },
      {
        "DeviceName": "/dev/xvdl",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0810a5ac78ecf0e11"
        }
      },
      {
        "DeviceName": "/dev/xvdm",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0e4ec2b5f1bf4d871"
        }
      },
      {
        "DeviceName": "/dev/xvdn",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-092a40b78baeeac7f"
        }
      },
      {
        "DeviceName": "/dev/xvdo",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:55+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0b1e2d02d509f3f5e"
        }
      },
      {
        "DeviceName": "/dev/xvdp",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-01cabf285c719295f"
        }
      }
    ],
    "ClientToken": "terraform-20230706192857135700000004",
    "EbsOptimized": true,
    "EnaSupport": true,
    "Hypervisor": "xen",
    "IamInstanceProfile": {
      "Arn": "arn:aws:iam::189682858917:instance-profile/hig/WindowsEC2Role",
      "Id": "AIPASYKP2XOSSBXPPW5LL"
    },
    "NetworkInterfaces": [
      {
        "Attachment": {
          "AttachTime": "2023-07-06T19:28:58+00:00",
          "AttachmentId": "eni-attach-09192f2a4fbf5a17d",
          "DeleteOnTermination": false,
          "DeviceIndex": 0,
          "Status": "attached",
          "NetworkCardIndex": 0
        },
        "Description": "",
        "Groups": [
          {
            "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
            "GroupId": "sg-04908349d0f791aec"
          },
          {
            "GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
            "GroupId": "sg-0b214ef19d0a4c0f7"
          },
          {
            "GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
            "GroupId": "sg-0c2f333cbfb09b29f"
          },
          {
            "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
            "GroupId": "sg-0257bb3846318d5fd"
          }
        ],
        "Ipv6Addresses": [],
        "MacAddress": "12:90:ce:a5:ca:a1",
        "NetworkInterfaceId": "eni-0086b400faa99451d",
        "OwnerId": "189682858917",
        "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
        "PrivateIpAddress": "172.23.43.196",
        "PrivateIpAddresses": [
          {
            "Primary": true,
            "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
            "PrivateIpAddress": "172.23.43.196"
          },
          {
            "Primary": false,
            "PrivateDnsName": "ip-172-23-43-163.ec2.internal",
            "PrivateIpAddress": "172.23.43.163"
          },
          {
            "Primary": false,
            "PrivateDnsName": "ip-172-23-43-141.ec2.internal",
            "PrivateIpAddress": "172.23.43.141"
          }
        ],
        "SourceDestCheck": true,
        "Status": "in-use",
        "SubnetId": "subnet-03aa1e87392c5e63d",
        "VpcId": "vpc-0e8954f5da98fe98d",
        "InterfaceType": "interface"
      }
    ],
    "RootDeviceName": "/dev/sda1",
    "RootDeviceType": "ebs",
    "SecurityGroups": [
      {
        "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
        "GroupId": "sg-04908349d0f791aec"
      },
      {
        "GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
        "GroupId": "sg-0b214ef19d0a4c0f7"
      },
      {
        "GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
        "GroupId": "sg-0c2f333cbfb09b29f"
      },
      {
        "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
        "GroupId": "sg-0257bb3846318d5fd"
      }
    ],
    "SourceDestCheck": true,
    "Tags": [
      {
        "Key": "Description",
        "Value": ""
      },
      {
        "Key": "hig-owner",
        "Value": "mahesh.vidyasagar@thehartford.com"
      },
      {
        "Key": "Billing",
        "Value": "APP-4587"
      },
      {
        "Key": "Repository",
        "Value": "https://github.thehartford.com/HIG/gs_tfe_peoplesoft_app4587"
      },
      {
        "Key": "Schedule",
        "Value": "None"
      },
      {
        "Key": "mssql_adou",
        "Value": "OU=SQL-GS,OU=Windows,OU=Cloud,OU=Servers,DC=ad1,DC=prod"
      },
      {
        "Key": "child_module_name",
        "Value": "terraform-aws-ec2-db-mssql"
      },
      {
        "Key": "mssql_instancename",
        "Value": "MSSQLSERVER"
      },
      {
        "Key": "module_name",
        "Value": "terraform-aws-ec2-instance"
      },
      {
        "Key": "Pipeline",
        "Value": "https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/PeopleSoft-4587/job/gsus_4587_peoplesoft_aws_gsprod/"
      },
      {
        "Key": "IMDSv2",
        "Value": "Enabled"
      },
      {
        "Key": "IMDSv2 Date",
        "Value": "07/06/2023, 19:30:24"
      },
      {
        "Key": "PatchGroup",
        "Value": "Multiple DB Node AZ2"
      },
      {
        "Key": "module_version",
        "Value": "v4.0.6"
      },
      {
        "Key": "BackupDBGroup",
        "Value": "ec2-sqldb-prod-silver"
      },
      {
        "Key": "mssql_version",
        "Value": "2019"
      },
      {
        "Key": "AppOwner",
        "Value": "Mahesh Vidyasagar"
      },
      {
        "Key": "hig-planit-appid",
        "Value": "APP-4587-PROD"
      },
      {
        "Key": "ServiceTier",
        "Value": "Silver"
      },
      {
        "Key": "DBNodes",
        "Value": "Secondary"
      },
      {
        "Key": "Hostname",
        "Value": "a4587ue1pwsag06"
      },
      {
        "Key": "mssql_datavolumes",
        "Value": "4"
      },
      {
        "Key": "mssql_installtype",
        "Value": "SAG"
      },
      {
        "Key": "hig-data-classification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "PatchingFlag",
        "Value": "Tag Applied"
      },
      {
        "Key": "Environment",
        "Value": "prod"
      },
      {
        "Key": "Owner",
        "Value": "HIG"
      },
      {
        "Key": "hig-billing",
        "Value": "APP-4587"
      },
      {
        "Key": "mssql_environment",
        "Value": "prod"
      },
      {
        "Key": "Domain",
        "Value": "ad1.prod"
      },
      {
        "Key": "AppName",
        "Value": "PeopleSoft"
      },
      {
        "Key": "ThirdParty",
        "Value": "No"
      },
      {
        "Key": "child_module_version",
        "Value": "v2.2.1"
      },
      {
        "Key": "Hosted Region",
        "Value": "US"
      },
      {
        "Key": "Name",
        "Value": "PeopleSoft-4587-PROD-sag-06"
      },
      {
        "Key": "BackupGroup",
        "Value": "ec2-nobackup"
      },
      {
        "Key": "LOB",
        "Value": "Global Specialty"
      },
      {
        "Key": "Patching Group",
        "Value": "Multiple DB Node AZ1"
      },
      {
        "Key": "backup_s3bucket",
        "Value": "gs-gsus-prod-net-01-sqlbackup-us-east-1"
      },
      {
        "Key": "DynatraceMonitoring",
        "Value": "true"
      },
      {
        "Key": "mssql_collation",
        "Value": "Latin1_General_BIN"
      },
      {
        "Key": "DataClassification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "AppId",
        "Value": "APP-4587"
      },
      {
        "Key": "AppTier",
        "Value": "DB"
      },
      {
        "Key": "hig-environment-type",
        "Value": "PROD"
      },
      {
        "Key": "backup_s3bucketkms",
        "Value": "arn:aws:kms:us-east-1:189682858917:key/e4b94c9a-82ad-4322-98ec-48d610f6548b"
      },
      {
        "Key": "Comments",
        "Value": ""
      }
    ],
    "VirtualizationType": "hvm",
    "CpuOptions": {
      "CoreCount": 4,
      "ThreadsPerCore": 1
    },
    "CapacityReservationSpecification": {
      "CapacityReservationPreference": "open"
    },
    "HibernationOptions": {
      "Configured": false
    },
    "MetadataOptions": {
      "State": "applied",
      "HttpTokens": "required",
      "HttpPutResponseHopLimit": 1,
      "HttpEndpoint": "enabled",
      "HttpProtocolIpv6": "disabled",
      "InstanceMetadataTags": "disabled"
    },
    "EnclaveOptions": {
      "Enabled": false
    },
    "PlatformDetails": "Windows",
    "UsageOperation": "RunInstances:0002",
    "UsageOperationUpdateTime": "2023-07-06T19:28:58+00:00",
    "PrivateDnsNameOptions": {
      "HostnameType": "ip-name",
      "EnableResourceNameDnsARecord": false,
      "EnableResourceNameDnsAAAARecord": false
    },
    "MaintenanceOptions": {
      "AutoRecovery": "default"
    },
    "CurrentInstanceBootMode": "legacy-bios",
    "c7n:MatchedFilters": [
      "tag:AccountType",
      "tag:Attributes",
      "tag:EnvironmentType",
      "tag:ImageBuilder"
    ]
  },
  {&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Oct 2024 08:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/700975#M237812</guid>
      <dc:creator>Hemant_h</dc:creator>
      <dc:date>2024-10-04T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701066#M237841</link>
      <description>&lt;P&gt;Out of curiosity - why foreach? mvmap() wouldn't suffice? I find foreach... a bit unsplunky &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 21:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701066#M237841</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-04T21:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701077#M237846</link>
      <description>&lt;P&gt;This is not a complete event. If you don't want to provide that, perhaps you could tell us what fields have already been extracted?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 08:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701077#M237846</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-05T08:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701092#M237856</link>
      <description>&lt;P&gt;To ask an answerable data analytics question, follow these golden rules; nay, call them the four commandments:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Illustrate data input (in raw text, anonymize as needed), whether they are raw events or output from a search that volunteers here do not have to look at.&lt;/LI&gt;&lt;LI&gt;Illustrate the desired output from illustrated data.&lt;/LI&gt;&lt;LI&gt;Explain the logic between illustrated data and desired output&amp;nbsp;&lt;EM&gt;without&lt;/EM&gt;&amp;nbsp;SPL.&lt;/LI&gt;&lt;LI&gt;If you also illustrate attempted SPL, illustrate actual output and compare with desired output, explain why they look different&amp;nbsp;&lt;U&gt;to you&lt;/U&gt;&amp;nbsp;if that is not painfully obvious.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let's check.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Your sample data are JSON fragments, not a complete JSON object. &amp;nbsp;Even the last update, no one can tell how deep that structure goes. &amp;nbsp;In other words, which exact JSON path leads to the subnode&amp;nbsp;c7n:MatchedFilters. &amp;nbsp;I understand that your event size is enormous so you cannot show a complete sample. &amp;nbsp;But you should show the complete structure of the object.&lt;/LI&gt;&lt;LI&gt;The phrase "show the count and tagname in tabular format" in the title seems to be an attempt to describe desired output. &amp;nbsp;But there are a thousand ways to show count and tagname in tabular format. &amp;nbsp;What is even a "count" in your text?&lt;/LI&gt;&lt;LI&gt;No description of logic.&lt;/LI&gt;&lt;LI&gt;N/A&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Without these, you are effectively asking volunteers to read your mind. &amp;nbsp;That is not a fair ask.&lt;/P&gt;&lt;P&gt;Now, based on your last update, we can see that&amp;nbsp;c7n:MatchedFilters is not a top node in your raw data. &amp;nbsp;It is a subnode in a very large array. &amp;nbsp;Is this large array a top node of your raw data? &amp;nbsp;If not, how many upper paths are there before we reach c7n:MatchedFilters? &amp;nbsp;Without an exact answer to this, there is no good answer to your question. &amp;nbsp;&lt;SPAN&gt;In the following, I will assume "yes" to this, i.e., I will assume that somekey[c7n:MatchedFilters] is the correct path. (Or, in SPL flattened notation, somekey{}.c7n:MatchedFilters{}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will further assume that&amp;nbsp;"show the count and tagname in tabular format" means to count events grouped by the string following "tag:" in each value of c7n:MatchedFilters. &amp;nbsp;In other words, I assume that this table is what you look for:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;tagName&lt;/TD&gt;&lt;TD&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AccountType&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AppTier&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ApplicationFailoverGroup&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Attributes&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DBNodes&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EnvironmentType&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ImageBuilder&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_aws_native_account_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_cluster_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_component&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_instance_class&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_job_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_managed&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_object&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_restore_source_region&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_restore_timestamp&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_source_snapshot_native_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_source_vm_native_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_source_vm_native_name&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_taskchain_id&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_user&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rk_version&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The above count is based on&amp;nbsp;the fragments you pasted. &amp;nbsp;I constructed the following as a valid JSON object to mimic the structure. &amp;nbsp;If this is not the correct structure, you need to go back to the four commandments and start over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"somekey": [
  {
    "AmiLaunchIndex": 0,
    "ImageId": "ami-08435a7e5e61bc00b",
    "InstanceId": "i-0b307f45f965d4222",
    "InstanceType": "r5b.2xlarge",
    "KeyName": "gsus-prod-net-01-key",
    "LaunchTime": "2024-07-19T15:42:09+00:00",
    "Monitoring": {
      "State": "disabled"
    },
    "Placement": {
      "AvailabilityZone": "us-east-1b",
      "GroupName": "",
      "Tenancy": "default"
    },
    "Platform": "windows",
    "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
    "PrivateIpAddress": "172.23.43.196",
    "ProductCodes": [],
    "PublicDnsName": "",
    "State": {
      "Code": 16,
      "Name": "running"
    },
    "StateTransitionReason": "",
    "SubnetId": "subnet-03aa1e87392c5e63d",
    "VpcId": "vpc-0e8954f5da98fe98d",
    "Architecture": "x86_64",
    "BlockDeviceMappings": [
      {
        "DeviceName": "/dev/sda1",
        "Ebs": {
          "AttachTime": "2024-07-19T15:41:21+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0d39da483194fdffa"
        }
      },
      {
        "DeviceName": "/dev/xvdf",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:04+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-07813f09191a4af20"
        }
      },
      {
        "DeviceName": "/dev/xvdg",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-05d213e8588431029"
        }
      },
      {
        "DeviceName": "/dev/xvdh",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-08849724290ff4ff0"
        }
      },
      {
        "DeviceName": "/dev/xvdi",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0711192d14ffdc4ff"
        }
      },
      {
        "DeviceName": "/dev/xvdj",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:25+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0d8db3494a8c7254c"
        }
      },
      {
        "DeviceName": "/dev/xvdk",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:16+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0cba7f29aec3d9a35"
        }
      },
      {
        "DeviceName": "/dev/xvdl",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0810a5ac78ecf0e11"
        }
      },
      {
        "DeviceName": "/dev/xvdm",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0e4ec2b5f1bf4d871"
        }
      },
      {
        "DeviceName": "/dev/xvdn",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:54+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-092a40b78baeeac7f"
        }
      },
      {
        "DeviceName": "/dev/xvdo",
        "Ebs": {
          "AttachTime": "2023-07-06T19:29:55+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-0b1e2d02d509f3f5e"
        }
      },
      {
        "DeviceName": "/dev/xvdp",
        "Ebs": {
          "AttachTime": "2023-07-06T19:30:15+00:00",
          "DeleteOnTermination": false,
          "Status": "attached",
          "VolumeId": "vol-01cabf285c719295f"
        }
      }
    ],
    "ClientToken": "terraform-20230706192857135700000004",
    "EbsOptimized": true,
    "EnaSupport": true,
    "Hypervisor": "xen",
    "IamInstanceProfile": {
      "Arn": "arn:aws:iam::189682858917:instance-profile/hig/WindowsEC2Role",
      "Id": "AIPASYKP2XOSSBXPPW5LL"
    },
    "NetworkInterfaces": [
      {
        "Attachment": {
          "AttachTime": "2023-07-06T19:28:58+00:00",
          "AttachmentId": "eni-attach-09192f2a4fbf5a17d",
          "DeleteOnTermination": false,
          "DeviceIndex": 0,
          "Status": "attached",
          "NetworkCardIndex": 0
        },
        "Description": "",
        "Groups": [
          {
            "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
            "GroupId": "sg-04908349d0f791aec"
          },
          {
            "GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
            "GroupId": "sg-0b214ef19d0a4c0f7"
          },
          {
            "GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
            "GroupId": "sg-0c2f333cbfb09b29f"
          },
          {
            "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
            "GroupId": "sg-0257bb3846318d5fd"
          }
        ],
        "Ipv6Addresses": [],
        "MacAddress": "12:90:ce:a5:ca:a1",
        "NetworkInterfaceId": "eni-0086b400faa99451d",
        "OwnerId": "189682858917",
        "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
        "PrivateIpAddress": "172.23.43.196",
        "PrivateIpAddresses": [
          {
            "Primary": true,
            "PrivateDnsName": "ip-172-23-43-196.ec2.internal",
            "PrivateIpAddress": "172.23.43.196"
          },
          {
            "Primary": false,
            "PrivateDnsName": "ip-172-23-43-163.ec2.internal",
            "PrivateIpAddress": "172.23.43.163"
          },
          {
            "Primary": false,
            "PrivateDnsName": "ip-172-23-43-141.ec2.internal",
            "PrivateIpAddress": "172.23.43.141"
          }
        ],
        "SourceDestCheck": true,
        "Status": "in-use",
        "SubnetId": "subnet-03aa1e87392c5e63d",
        "VpcId": "vpc-0e8954f5da98fe98d",
        "InterfaceType": "interface"
      }
    ],
    "RootDeviceName": "/dev/sda1",
    "RootDeviceType": "ebs",
    "SecurityGroups": [
      {
        "GroupName": "gsus-prod-net-01-cmdb-sg-2022051216484634970000000a",
        "GroupId": "sg-04908349d0f791aec"
      },
      {
        "GroupName": "gsus-prod-net-01-sql-sg-20220512164845082300000004",
        "GroupId": "sg-0b214ef19d0a4c0f7"
      },
      {
        "GroupName": "gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001",
        "GroupId": "sg-0c2f333cbfb09b29f"
      },
      {
        "GroupName": "gsus-prod-net-01-win-sg-20220512164844866600000001",
        "GroupId": "sg-0257bb3846318d5fd"
      }
    ],
    "SourceDestCheck": true,
    "Tags": [
      {
        "Key": "Description",
        "Value": ""
      },
      {
        "Key": "hig-owner",
        "Value": "mahesh.vidyasagar@thehartford.com"
      },
      {
        "Key": "Billing",
        "Value": "APP-4587"
      },
      {
        "Key": "Repository",
        "Value": "https://github.thehartford.com/HIG/gs_tfe_peoplesoft_app4587"
      },
      {
        "Key": "Schedule",
        "Value": "None"
      },
      {
        "Key": "mssql_adou",
        "Value": "OU=SQL-GS,OU=Windows,OU=Cloud,OU=Servers,DC=ad1,DC=prod"
      },
      {
        "Key": "child_module_name",
        "Value": "terraform-aws-ec2-db-mssql"
      },
      {
        "Key": "mssql_instancename",
        "Value": "MSSQLSERVER"
      },
      {
        "Key": "module_name",
        "Value": "terraform-aws-ec2-instance"
      },
      {
        "Key": "Pipeline",
        "Value": "https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/PeopleSoft-4587/job/gsus_4587_peoplesoft_aws_gsprod/"
      },
      {
        "Key": "IMDSv2",
        "Value": "Enabled"
      },
      {
        "Key": "IMDSv2 Date",
        "Value": "07/06/2023, 19:30:24"
      },
      {
        "Key": "PatchGroup",
        "Value": "Multiple DB Node AZ2"
      },
      {
        "Key": "module_version",
        "Value": "v4.0.6"
      },
      {
        "Key": "BackupDBGroup",
        "Value": "ec2-sqldb-prod-silver"
      },
      {
        "Key": "mssql_version",
        "Value": "2019"
      },
      {
        "Key": "AppOwner",
        "Value": "Mahesh Vidyasagar"
      },
      {
        "Key": "hig-planit-appid",
        "Value": "APP-4587-PROD"
      },
      {
        "Key": "ServiceTier",
        "Value": "Silver"
      },
      {
        "Key": "DBNodes",
        "Value": "Secondary"
      },
      {
        "Key": "Hostname",
        "Value": "a4587ue1pwsag06"
      },
      {
        "Key": "mssql_datavolumes",
        "Value": "4"
      },
      {
        "Key": "mssql_installtype",
        "Value": "SAG"
      },
      {
        "Key": "hig-data-classification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "PatchingFlag",
        "Value": "Tag Applied"
      },
      {
        "Key": "Environment",
        "Value": "prod"
      },
      {
        "Key": "Owner",
        "Value": "HIG"
      },
      {
        "Key": "hig-billing",
        "Value": "APP-4587"
      },
      {
        "Key": "mssql_environment",
        "Value": "prod"
      },
      {
        "Key": "Domain",
        "Value": "ad1.prod"
      },
      {
        "Key": "AppName",
        "Value": "PeopleSoft"
      },
      {
        "Key": "ThirdParty",
        "Value": "No"
      },
      {
        "Key": "child_module_version",
        "Value": "v2.2.1"
      },
      {
        "Key": "Hosted Region",
        "Value": "US"
      },
      {
        "Key": "Name",
        "Value": "PeopleSoft-4587-PROD-sag-06"
      },
      {
        "Key": "BackupGroup",
        "Value": "ec2-nobackup"
      },
      {
        "Key": "LOB",
        "Value": "Global Specialty"
      },
      {
        "Key": "Patching Group",
        "Value": "Multiple DB Node AZ1"
      },
      {
        "Key": "backup_s3bucket",
        "Value": "gs-gsus-prod-net-01-sqlbackup-us-east-1"
      },
      {
        "Key": "DynatraceMonitoring",
        "Value": "true"
      },
      {
        "Key": "mssql_collation",
        "Value": "Latin1_General_BIN"
      },
      {
        "Key": "DataClassification",
        "Value": "CompanyConfidential"
      },
      {
        "Key": "AppId",
        "Value": "APP-4587"
      },
      {
        "Key": "AppTier",
        "Value": "DB"
      },
      {
        "Key": "hig-environment-type",
        "Value": "PROD"
      },
      {
        "Key": "backup_s3bucketkms",
        "Value": "arn:aws:kms:us-east-1:189682858917:key/e4b94c9a-82ad-4322-98ec-48d610f6548b"
      },
      {
        "Key": "Comments",
        "Value": ""
      }
    ],
    "VirtualizationType": "hvm",
    "CpuOptions": {
      "CoreCount": 4,
      "ThreadsPerCore": 1
    },
    "CapacityReservationSpecification": {
      "CapacityReservationPreference": "open"
    },
    "HibernationOptions": {
      "Configured": false
    },
    "MetadataOptions": {
      "State": "applied",
      "HttpTokens": "required",
      "HttpPutResponseHopLimit": 1,
      "HttpEndpoint": "enabled",
      "HttpProtocolIpv6": "disabled",
      "InstanceMetadataTags": "disabled"
    },
    "EnclaveOptions": {
      "Enabled": false
    },
    "PlatformDetails": "Windows",
    "UsageOperation": "RunInstances:0002",
    "UsageOperationUpdateTime": "2023-07-06T19:28:58+00:00",
    "PrivateDnsNameOptions": {
      "HostnameType": "ip-name",
      "EnableResourceNameDnsARecord": false,
      "EnableResourceNameDnsAAAARecord": false
    },
    "MaintenanceOptions": {
      "AutoRecovery": "default"
    },
    "CurrentInstanceBootMode": "legacy-bios",
    "someOtherStuff": "othervalue",
    "c7n:MatchedFilters": [
      "tag:AccountType",
      "tag:Attributes",
      "tag:EnvironmentType",
      "tag:ImageBuilder"
    ]
  },
  {
    "AmiLaunchIndex": 1,
    "someOtherStuff": "othervalue",
    "c7n:MatchedFilters": [
      "tag:ApplicationFailoverGroup",
      "tag:AppTier",
      "tag:Attributes",
      "tag:DBNodes",
      "tag:rk_aws_native_account_id",
      "tag:rk_cluster_id", "tag:rk_component",
      "tag:rk_instance_class", "tag:rk_job_id",
      "tag:rk_managed", "tag:rk_object",
      "tag:rk_restore_source_region",
      "tag:rk_restore_timestamp",
      "tag:rk_source_snapshot_native_id",
      "tag:rk_source_vm_native_id",
      "tag:rk_source_vm_native_name",
      "tag:rk_taskchain_id",
      "tag:rk_user",
      "tag:rk_version"
    ]
  }
]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I took the valid element from your latest sample, and added the fragment containing the&amp;nbsp;c7n:MatchedFilters key as a second element of top level key somekey. So, the second element does not have all the other keys as they are not of interest to this particular question.&lt;/P&gt;&lt;P&gt;After this construction, I think I get a handle to why the basic technique doesn't work. &amp;nbsp;But let me explain the basic technique first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is assuming that Splunk search head already extracted all fields from raw data, which is the norm. &amp;nbsp;But your raw events are so huge, even that single valid array element you posted is &amp;gt;15KB. &amp;nbsp;Splunk has this default in limits.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[spath]
# Number of characters to read from an XML or JSON event when
# auto extracting.
extraction_cutoff = 5000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can increase this to be larger than the maximum size of your events. &amp;nbsp;But that may require a lot of RAM.&lt;/P&gt;&lt;P&gt;Without touching extraction_cutoff, you can directly reach&amp;nbsp;c7n:MatchedFilters with &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath" target="_blank" rel="noopener"&gt;spath&lt;/A&gt; command. &amp;nbsp;Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath path=somekey{}
| spath input=somekey{} path=c7n:MatchedFilters{} output=tagName
| stats count by tagName
| eval tagName = replace(tagName, "tag:", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 23:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701092#M237856</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-10-05T23:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me extract the tags from json format so i can show the count and tagname in tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701093#M237857</link>
      <description>&lt;P&gt;The following is the emulation to produce the mock data. &amp;nbsp;Play with it and compare with real data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _*
| eval _raw = "{
\"somekey\": [
  {
    \"AmiLaunchIndex\": 0,
    \"ImageId\": \"ami-08435a7e5e61bc00b\",
    \"InstanceId\": \"i-0b307f45f965d4222\",
    \"InstanceType\": \"r5b.2xlarge\",
    \"KeyName\": \"gsus-prod-net-01-key\",
    \"LaunchTime\": \"2024-07-19T15:42:09+00:00\",
    \"Monitoring\": {
      \"State\": \"disabled\"
    },
    \"Placement\": {
      \"AvailabilityZone\": \"us-east-1b\",
      \"GroupName\": \"\",
      \"Tenancy\": \"default\"
    },
    \"Platform\": \"windows\",
    \"PrivateDnsName\": \"ip-172-23-43-196.ec2.internal\",
    \"PrivateIpAddress\": \"172.23.43.196\",
    \"ProductCodes\": [],
    \"PublicDnsName\": \"\",
    \"State\": {
      \"Code\": 16,
      \"Name\": \"running\"
    },
    \"StateTransitionReason\": \"\",
    \"SubnetId\": \"subnet-03aa1e87392c5e63d\",
    \"VpcId\": \"vpc-0e8954f5da98fe98d\",
    \"Architecture\": \"x86_64\",
    \"BlockDeviceMappings\": [
      {
        \"DeviceName\": \"/dev/sda1\",
        \"Ebs\": {
          \"AttachTime\": \"2024-07-19T15:41:21+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0d39da483194fdffa\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdf\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:04+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-07813f09191a4af20\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdg\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:15+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-05d213e8588431029\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdh\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:29:54+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-08849724290ff4ff0\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdi\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:29:54+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0711192d14ffdc4ff\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdj\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:25+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0d8db3494a8c7254c\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdk\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:16+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0cba7f29aec3d9a35\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdl\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:15+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0810a5ac78ecf0e11\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdm\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:15+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0e4ec2b5f1bf4d871\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdn\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:29:54+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-092a40b78baeeac7f\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdo\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:29:55+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-0b1e2d02d509f3f5e\"
        }
      },
      {
        \"DeviceName\": \"/dev/xvdp\",
        \"Ebs\": {
          \"AttachTime\": \"2023-07-06T19:30:15+00:00\",
          \"DeleteOnTermination\": false,
          \"Status\": \"attached\",
          \"VolumeId\": \"vol-01cabf285c719295f\"
        }
      }
    ],
    \"ClientToken\": \"terraform-20230706192857135700000004\",
    \"EbsOptimized\": true,
    \"EnaSupport\": true,
    \"Hypervisor\": \"xen\",
    \"IamInstanceProfile\": {
      \"Arn\": \"arn:aws:iam::189682858917:instance-profile/hig/WindowsEC2Role\",
      \"Id\": \"AIPASYKP2XOSSBXPPW5LL\"
    },
    \"NetworkInterfaces\": [
      {
        \"Attachment\": {
          \"AttachTime\": \"2023-07-06T19:28:58+00:00\",
          \"AttachmentId\": \"eni-attach-09192f2a4fbf5a17d\",
          \"DeleteOnTermination\": false,
          \"DeviceIndex\": 0,
          \"Status\": \"attached\",
          \"NetworkCardIndex\": 0
        },
        \"Description\": \"\",
        \"Groups\": [
          {
            \"GroupName\": \"gsus-prod-net-01-cmdb-sg-2022051216484634970000000a\",
            \"GroupId\": \"sg-04908349d0f791aec\"
          },
          {
            \"GroupName\": \"gsus-prod-net-01-sql-sg-20220512164845082300000004\",
            \"GroupId\": \"sg-0b214ef19d0a4c0f7\"
          },
          {
            \"GroupName\": \"gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001\",
            \"GroupId\": \"sg-0c2f333cbfb09b29f\"
          },
          {
            \"GroupName\": \"gsus-prod-net-01-win-sg-20220512164844866600000001\",
            \"GroupId\": \"sg-0257bb3846318d5fd\"
          }
        ],
        \"Ipv6Addresses\": [],
        \"MacAddress\": \"12:90:ce:a5:ca:a1\",
        \"NetworkInterfaceId\": \"eni-0086b400faa99451d\",
        \"OwnerId\": \"189682858917\",
        \"PrivateDnsName\": \"ip-172-23-43-196.ec2.internal\",
        \"PrivateIpAddress\": \"172.23.43.196\",
        \"PrivateIpAddresses\": [
          {
            \"Primary\": true,
            \"PrivateDnsName\": \"ip-172-23-43-196.ec2.internal\",
            \"PrivateIpAddress\": \"172.23.43.196\"
          },
          {
            \"Primary\": false,
            \"PrivateDnsName\": \"ip-172-23-43-163.ec2.internal\",
            \"PrivateIpAddress\": \"172.23.43.163\"
          },
          {
            \"Primary\": false,
            \"PrivateDnsName\": \"ip-172-23-43-141.ec2.internal\",
            \"PrivateIpAddress\": \"172.23.43.141\"
          }
        ],
        \"SourceDestCheck\": true,
        \"Status\": \"in-use\",
        \"SubnetId\": \"subnet-03aa1e87392c5e63d\",
        \"VpcId\": \"vpc-0e8954f5da98fe98d\",
        \"InterfaceType\": \"interface\"
      }
    ],
    \"RootDeviceName\": \"/dev/sda1\",
    \"RootDeviceType\": \"ebs\",
    \"SecurityGroups\": [
      {
        \"GroupName\": \"gsus-prod-net-01-cmdb-sg-2022051216484634970000000a\",
        \"GroupId\": \"sg-04908349d0f791aec\"
      },
      {
        \"GroupName\": \"gsus-prod-net-01-sql-sg-20220512164845082300000004\",
        \"GroupId\": \"sg-0b214ef19d0a4c0f7\"
      },
      {
        \"GroupName\": \"gsus-prod-net-01-app-4587-v2sql-sg-20230707183929669400000001\",
        \"GroupId\": \"sg-0c2f333cbfb09b29f\"
      },
      {
        \"GroupName\": \"gsus-prod-net-01-win-sg-20220512164844866600000001\",
        \"GroupId\": \"sg-0257bb3846318d5fd\"
      }
    ],
    \"SourceDestCheck\": true,
    \"Tags\": [
      {
        \"Key\": \"Description\",
        \"Value\": \"\"
      },
      {
        \"Key\": \"hig-owner\",
        \"Value\": \"mahesh.vidyasagar@thehartford.com\"
      },
      {
        \"Key\": \"Billing\",
        \"Value\": \"APP-4587\"
      },
      {
        \"Key\": \"Repository\",
        \"Value\": \"https://github.thehartford.com/HIG/gs_tfe_peoplesoft_app4587\"
      },
      {
        \"Key\": \"Schedule\",
        \"Value\": \"None\"
      },
      {
        \"Key\": \"mssql_adou\",
        \"Value\": \"OU=SQL-GS,OU=Windows,OU=Cloud,OU=Servers,DC=ad1,DC=prod\"
      },
      {
        \"Key\": \"child_module_name\",
        \"Value\": \"terraform-aws-ec2-db-mssql\"
      },
      {
        \"Key\": \"mssql_instancename\",
        \"Value\": \"MSSQLSERVER\"
      },
      {
        \"Key\": \"module_name\",
        \"Value\": \"terraform-aws-ec2-instance\"
      },
      {
        \"Key\": \"Pipeline\",
        \"Value\": \"https://jenkinsci.thehartford.com/iac-1/job/IAC/job/GS/job/PeopleSoft-4587/job/gsus_4587_peoplesoft_aws_gsprod/\"
      },
      {
        \"Key\": \"IMDSv2\",
        \"Value\": \"Enabled\"
      },
      {
        \"Key\": \"IMDSv2 Date\",
        \"Value\": \"07/06/2023, 19:30:24\"
      },
      {
        \"Key\": \"PatchGroup\",
        \"Value\": \"Multiple DB Node AZ2\"
      },
      {
        \"Key\": \"module_version\",
        \"Value\": \"v4.0.6\"
      },
      {
        \"Key\": \"BackupDBGroup\",
        \"Value\": \"ec2-sqldb-prod-silver\"
      },
      {
        \"Key\": \"mssql_version\",
        \"Value\": \"2019\"
      },
      {
        \"Key\": \"AppOwner\",
        \"Value\": \"Mahesh Vidyasagar\"
      },
      {
        \"Key\": \"hig-planit-appid\",
        \"Value\": \"APP-4587-PROD\"
      },
      {
        \"Key\": \"ServiceTier\",
        \"Value\": \"Silver\"
      },
      {
        \"Key\": \"DBNodes\",
        \"Value\": \"Secondary\"
      },
      {
        \"Key\": \"Hostname\",
        \"Value\": \"a4587ue1pwsag06\"
      },
      {
        \"Key\": \"mssql_datavolumes\",
        \"Value\": \"4\"
      },
      {
        \"Key\": \"mssql_installtype\",
        \"Value\": \"SAG\"
      },
      {
        \"Key\": \"hig-data-classification\",
        \"Value\": \"CompanyConfidential\"
      },
      {
        \"Key\": \"PatchingFlag\",
        \"Value\": \"Tag Applied\"
      },
      {
        \"Key\": \"Environment\",
        \"Value\": \"prod\"
      },
      {
        \"Key\": \"Owner\",
        \"Value\": \"HIG\"
      },
      {
        \"Key\": \"hig-billing\",
        \"Value\": \"APP-4587\"
      },
      {
        \"Key\": \"mssql_environment\",
        \"Value\": \"prod\"
      },
      {
        \"Key\": \"Domain\",
        \"Value\": \"ad1.prod\"
      },
      {
        \"Key\": \"AppName\",
        \"Value\": \"PeopleSoft\"
      },
      {
        \"Key\": \"ThirdParty\",
        \"Value\": \"No\"
      },
      {
        \"Key\": \"child_module_version\",
        \"Value\": \"v2.2.1\"
      },
      {
        \"Key\": \"Hosted Region\",
        \"Value\": \"US\"
      },
      {
        \"Key\": \"Name\",
        \"Value\": \"PeopleSoft-4587-PROD-sag-06\"
      },
      {
        \"Key\": \"BackupGroup\",
        \"Value\": \"ec2-nobackup\"
      },
      {
        \"Key\": \"LOB\",
        \"Value\": \"Global Specialty\"
      },
      {
        \"Key\": \"Patching Group\",
        \"Value\": \"Multiple DB Node AZ1\"
      },
      {
        \"Key\": \"backup_s3bucket\",
        \"Value\": \"gs-gsus-prod-net-01-sqlbackup-us-east-1\"
      },
      {
        \"Key\": \"DynatraceMonitoring\",
        \"Value\": \"true\"
      },
      {
        \"Key\": \"mssql_collation\",
        \"Value\": \"Latin1_General_BIN\"
      },
      {
        \"Key\": \"DataClassification\",
        \"Value\": \"CompanyConfidential\"
      },
      {
        \"Key\": \"AppId\",
        \"Value\": \"APP-4587\"
      },
      {
        \"Key\": \"AppTier\",
        \"Value\": \"DB\"
      },
      {
        \"Key\": \"hig-environment-type\",
        \"Value\": \"PROD\"
      },
      {
        \"Key\": \"backup_s3bucketkms\",
        \"Value\": \"arn:aws:kms:us-east-1:189682858917:key/e4b94c9a-82ad-4322-98ec-48d610f6548b\"
      },
      {
        \"Key\": \"Comments\",
        \"Value\": \"\"
      }
    ],
    \"VirtualizationType\": \"hvm\",
    \"CpuOptions\": {
      \"CoreCount\": 4,
      \"ThreadsPerCore\": 1
    },
    \"CapacityReservationSpecification\": {
      \"CapacityReservationPreference\": \"open\"
    },
    \"HibernationOptions\": {
      \"Configured\": false
    },
    \"MetadataOptions\": {
      \"State\": \"applied\",
      \"HttpTokens\": \"required\",
      \"HttpPutResponseHopLimit\": 1,
      \"HttpEndpoint\": \"enabled\",
      \"HttpProtocolIpv6\": \"disabled\",
      \"InstanceMetadataTags\": \"disabled\"
    },
    \"EnclaveOptions\": {
      \"Enabled\": false
    },
    \"PlatformDetails\": \"Windows\",
    \"UsageOperation\": \"RunInstances:0002\",
    \"UsageOperationUpdateTime\": \"2023-07-06T19:28:58+00:00\",
    \"PrivateDnsNameOptions\": {
      \"HostnameType\": \"ip-name\",
      \"EnableResourceNameDnsARecord\": false,
      \"EnableResourceNameDnsAAAARecord\": false
    },
    \"MaintenanceOptions\": {
      \"AutoRecovery\": \"default\"
    },
    \"CurrentInstanceBootMode\": \"legacy-bios\",
    \"someOtherStuff\": \"othervalue\",
    \"c7n:MatchedFilters\": [
      \"tag:AccountType\",
      \"tag:Attributes\",
      \"tag:EnvironmentType\",
      \"tag:ImageBuilder\"
    ]
  },
  {
    \"AmiLaunchIndex\": 1,
    \"someOtherStuff\": \"othervalue\",
    \"c7n:MatchedFilters\": [
      \"tag:ApplicationFailoverGroup\",
      \"tag:AppTier\",
      \"tag:Attributes\",
      \"tag:DBNodes\",
      \"tag:rk_aws_native_account_id\",
      \"tag:rk_cluster_id\", \"tag:rk_component\",
      \"tag:rk_instance_class\", \"tag:rk_job_id\",
      \"tag:rk_managed\", \"tag:rk_object\",
      \"tag:rk_restore_source_region\",
      \"tag:rk_restore_timestamp\",
      \"tag:rk_source_snapshot_native_id\",
      \"tag:rk_source_vm_native_id\",
      \"tag:rk_source_vm_native_name\",
      \"tag:rk_taskchain_id\",
      \"tag:rk_user\",
      \"tag:rk_version\"
    ]
  }
]
}"
| spath
``` data emulation above ```&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 23:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-help-me-extract-the-tags-from-json-format-so-i-can-show/m-p/701093#M237857</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-10-05T23:31:57Z</dc:date>
    </item>
  </channel>
</rss>

