I am trying to fetch a .json file through filebeat to send logs to logstash. But it throws an error as
"
"tags" => [
[0] "beats_input_raw_event"
]"
My filebeat.yml has following configuration:
filebeat.prospectors:
-
type: log
enabled: truepaths:
- ./test_sample.json
json.keys_under_root: true
json.add_error_key: true
- ./test_sample.json
My json file has following data
[
{"name": "Rhonda Levine","department": "Development","email": "rhondalevine@anixang.com"},
{"name": "Mcgee Klein","department": "Accounts","email": "mcgeeklein@digique.com" },
{"name": "Dixon Poole","department": "HR","email": "dixonpoole@microluxe.com"},
{"name": "Blackwell Hill","department": "Development","email": "blackwellhill@affluex.com"},
{"name": "Leonor Mack","department": "Accounts","email": "leonormack@isosphere.com"},
{"name": "Corrine Howe","department": "Development","email": "corrinehowe@terrasys.com"},
{"name": "Sondra Flores","department": "HR","email": "sondraflores@jetsilk.com"},
{"name": "Farley Shaw","department": "Development","email": "farleyshaw@comvey.com"},
{"name": "Mcpherson Patterson","department": "HR","email": "mcphersonpatterson@escenta.com"},
{"name": "Preston Lucas","department": "Development","email": "prestonlucas@enormo.com"},
{"name": "Hester Butler","department": "Development","email": "hesterbutler@zillanet.com"},
{"name": "Fay Burris","department": "Accounts","email": "fayburris@suremax.com"},
{"name": "Deena Benton","department": "Development","email": "deenabenton@intradisk.com"},
{"name": "Mclean Carrillo","department": "MEDESIGN","email": "mcleancarrillo@medesign.com"},
{"name": "Daniels Good","department": "KONNECT","email": "danielsgood@konnect.com"},
{"name": "Marietta Evans","department": "Development","email": "mariettaevans@bezal.com"},
{"name": "Angeline Cantu","department": "Development","email": "angelinecantu@sportan.com"},
{"name": "Macdonald Atkins","department": "Development","email": "macdonaldatkins@orbin.com"},
{"name": "Mooney Bennett","department": "Accounts","email": "mooneybennett@interfind.com"}
]
Please help!