Hi Guys,
can anyone provide me sample logstash conf file to parse and document the json formatted data into elasticsearch using logstash. There are multiple fields which needs to parsed. Any quick help is appreciated so that I can start this. Below is the sample JSON file which needs to be parsed.
=====================================================================
{
"0": {
"TEXT_CLEAN": "to add an attachment to a thread do the follow 1 once you have create a thread you will see add attachment option on the left hand side 2 click on browse select a file and click do 3 you can add files up to 5 mb of size 4 read through the privacy policy and submit how to add attachment to a thread",
"TEXT_CONTENT": "To add an Attachment to a thread, do the following:\n1.\tOnce you have created a thread, you will see 'Add Attachment' option on the left hand side.\n2.\tClick on Browse, select a file and click done.\n3.\tYou can add files up to 5 MB of size.\n4.\tRead through the privacy policy and submit.",
"title": "How to add an Attachment to a thread",
"col1": {},
"KEYWORDS_CONTENT": [
"option",
"creat",
"read",
"attach",
"privaci",
"thread",
"side",
"follow",
"file",
"brows",
"left",
"hand",
"size",
"submit",
"add",
"click",
"polici"
],
"ner_hierarchy_display_content": {
"NERAction": [
"create",
"read"
],
"NERCategory": [
"",
"files"
]
},
"ner_hierarchy_display": {},
"KEYWORDS_CONTENT": "option create read attachment privacy thread side follow file 1 browse left hand size submit add click policy mb",
"html_content": "
To add an Attachment to a thread, do the following:
\n1.\tOnce you have created a thread, you will see 'Add Attachment' option on the left hand side.\n2.\tClick on Browse, select a file and click done.\n3.\tYou can add files up to 5 MB of size.\n4.\tRead through the privacy policy and submit.","std_title": "how to add attachment to a thread"
},
"1": {} -- NEXT JSON CONTENT
}
Thanks,
Deepak