admin管理员组文章数量:1278883
I am trying to parse this JSON data in fluentd, could you please suggest the parser and the configuration which can be used to parse this data
[
{
"Priority": 65000,
"NSG Name": "new_nsg",
"Rule Name": "AllowVnetInBound",
"SourceAddressPrefix": [
"VirtualNetwork"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"VirtualNetwork"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Inbound"
},
{
"Priority": 65001,
"NSG Name": "new_nsg",
"Rule Name": "AllowAzureLoadBalancerInBound",
"SourceAddressPrefix": [
"AzureLoadBalancer"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"*"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Inbound"
},
{
"Priority": 65500,
"NSG Name": "new_nsg",
"Rule Name": "DenyAllInBound",
"SourceAddressPrefix": [
"*"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"*"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Deny",
"Direction": "Inbound"
},
{
"Priority": 65000,
"NSG Name": "new_nsg",
"Rule Name": "AllowVnetOutBound",
"SourceAddressPrefix": [
"VirtualNetwork"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"VirtualNetwork"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Outbound"
},
{
"Priority": 65001,
"NSG Name": "new_nsg",
"Rule Name": "AllowInternetOutBound",
"SourceAddressPrefix": [
"*"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"Internet"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Outbound"
},
{
"Priority": 65500,
"NSG Name": "new_nsg",
"Rule Name": "DenyAllOutBound",
"SourceAddressPrefix": [
"*"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"*"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Deny",
"Direction": "Outbound"
}
]
I tried something like this but nothing working.
[
{
"Priority": 65000,
"NSG Name": "new_nsg",
"Rule Name": "AllowVnetInBound",
"SourceAddressPrefix": [
"VirtualNetwork"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"VirtualNetwork"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Inbound"
},
{
"Priority": 65001,
"NSG Name": "new_nsg",
"Rule Name": "AllowAzureLoadBalancerInBound",
"SourceAddressPrefix": [
"AzureLoadBalancer"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"*"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Inbound"
},
{
"Priority": 65500,
"NSG Name": "new_nsg",
"Rule Name": "DenyAllInBound",
"SourceAddressPrefix": [
"*"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"*"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Deny",
"Direction": "Inbound"
},
{
"Priority": 65000,
"NSG Name": "new_nsg",
"Rule Name": "AllowVnetOutBound",
"SourceAddressPrefix": [
"VirtualNetwork"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"VirtualNetwork"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Outbound"
},
{
"Priority": 65001,
"NSG Name": "new_nsg",
"Rule Name": "AllowInternetOutBound",
"SourceAddressPrefix": [
"*"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"Internet"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Allow",
"Direction": "Outbound"
},
{
"Priority": 65500,
"NSG Name": "new_nsg",
"Rule Name": "DenyAllOutBound",
"SourceAddressPrefix": [
"*"
],
"SourcePortRange": [
"*"
],
"DestinationAddressPrefix": [
"*"
],
"DestinationPort": [
"*"
],
"Protocol": "*",
"Access": "Deny",
"Direction": "Outbound"
}
]
本文标签:
版权声明:本文标题:kibana - Need to parse the json data in elasticsearch, using fluentd json parse but the combination I tried is not working - Sta 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741226244a2361913.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论