getting subject error. how do I resolve it ?
{
"network": {
"servers": [localhost:5043" ],
"timeout": 15
},
"files": [
"paths:" [
"/data/logs/cog*.log"
],
"fields": [ "type": "xxxlog" ]
]
}
getting subject error. how do I resolve it ?
{
"network": {
"servers": [localhost:5043" ],
"timeout": 15
},
"files": [
"paths:" [
"/data/logs/cog*.log"
],
"fields": [ "type": "xxxlog" ]
]
}
Change
"fields": [ "type": "xxxlog" ]
to
"fields": { "type": "xxxlog" }
tried your suggestion still getting same error
There's also a missing double quote right before "localhost". And after "paths" you've mixed up the order of the double quote and the colon.
The file format is standard JSON so you can save yourself some time and validate it on e.g. http://jsonlint.com/.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.