{"action":"created","issue":{"url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip/issues/74","repository_url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip","labels_url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip/issues/74/comments","events_url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip/issues/74/events","html_url":"https://github.com/y-ken/fluent-plugin-geoip/issues/74","id":341213590,"node_id":"MDU6SXNzdWUzNDEyMTM1OTA=","number":74,"title":"Create nested record","user":{"login":"ardikabs","id":12388578,"node_id":"MDQ6VXNlcjEyMzg4NTc4","avatar_url":"https://avatars2.githubusercontent.com/u/12388578?v=4","gravatar_id":"","url":"https://api.github.com/users/ardikabs","html_url":"https://github.com/ardikabs","followers_url":"https://api.github.com/users/ardikabs/followers","following_url":"https://api.github.com/users/ardikabs/following{/other_user}","gists_url":"https://api.github.com/users/ardikabs/gists{/gist_id}","starred_url":"https://api.github.com/users/ardikabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardikabs/subscriptions","organizations_url":"https://api.github.com/users/ardikabs/orgs","repos_url":"https://api.github.com/users/ardikabs/repos","events_url":"https://api.github.com/users/ardikabs/events{/privacy}","received_events_url":"https://api.github.com/users/ardikabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-14T06:27:10Z","updated_at":"2018-07-18T05:54:10Z","closed_at":null,"author_association":"NONE","body":"Hello there, im trying to create nested data with this plugin,\r\nlike this format\r\n```\r\n{\r\n\t\"geoip\": {\r\n\t\t\"location\": {\"latitude\":xxx, \"longitude\": xx},\r\n\t\t\"city\": \"someCity\",\r\n\t\t\"country\": \"someCountry\",\r\n\t\t\"country_code\": \"someCountryCode\",\r\n\t\t\"postal_code\": \"somePostalCode\",\r\n\t\t\"region_name\": \"someRegion\",\r\n\t\t\"region_code\": \"someRegionCode\"\r\n\t\t\"autonomous_system_number\": xx,\r\n\t\t\"autonomous_system_organization\": \"someOrganization\"\r\n\t}\r\n\r\n}\r\n```\r\nHow can i create like that ?\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip/issues/comments/405817421","html_url":"https://github.com/y-ken/fluent-plugin-geoip/issues/74#issuecomment-405817421","issue_url":"https://api.github.com/repos/y-ken/fluent-plugin-geoip/issues/74","id":405817421,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTgxNzQyMQ==","user":{"login":"ardikabs","id":12388578,"node_id":"MDQ6VXNlcjEyMzg4NTc4","avatar_url":"https://avatars2.githubusercontent.com/u/12388578?v=4","gravatar_id":"","url":"https://api.github.com/users/ardikabs","html_url":"https://github.com/ardikabs","followers_url":"https://api.github.com/users/ardikabs/followers","following_url":"https://api.github.com/users/ardikabs/following{/other_user}","gists_url":"https://api.github.com/users/ardikabs/gists{/gist_id}","starred_url":"https://api.github.com/users/ardikabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardikabs/subscriptions","organizations_url":"https://api.github.com/users/ardikabs/orgs","repos_url":"https://api.github.com/users/ardikabs/repos","events_url":"https://api.github.com/users/ardikabs/events{/privacy}","received_events_url":"https://api.github.com/users/ardikabs/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T05:54:10Z","updated_at":"2018-07-18T05:54:10Z","author_association":"NONE","body":"@okkez \r\nthats work for the idea, but using this conf\r\n```\r\n<label @modify>\r\n  <filter>\r\n    @type record_transformer\r\n    remove_keys asn, aso, city, latitude, longitude\r\n    #enable_ruby true\r\n    <record>\r\n      geoip '{city: ${record[\"city\"]}, location: { latitude: ${record[\"latitude\"]}, longitude: ${record[\"longitude\"]} }, autonomous_system_number: ${record[\"asn\"]}, autonomous_system_organization: ${record[\"aso\"]}}'\r\n    </record>\r\n  </filter>\r\n  <match>\r\n    @type relabel\r\n    @label @output\r\n  </match>\r\n</label>\r\n```\r\n\r\ni dont know why, but i just try and the record change to string not hash or json format. So i use the other way, but still like your idea. I think ill close this issue.\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"ardikabs"}}