did as you mentioned. Opened my file in notepad and at end of line one pressed enter and saved both the files with new name and made changes accordingly in yml config. But i got error this time saying error decoding json.
Output log:
2018-03-30T12:10:32-07:00 DBG Disable stderr logging
2018-03-30T12:10:32-07:00 INFO Home path: [C:\Users\sgorasia\Downloads\filebeat] Config path: [C:\Users\sgorasia\Downloads\filebeat] Data path: [C:\ProgramData\filebeat] Logs path: [C:\Users\sgorasia\Downloads\filebeat\logs]
2018-03-30T12:10:32-07:00 INFO Setup Beat: filebeat; Version: 5.5.1
2018-03-30T12:10:32-07:00 DBG Processors:
2018-03-30T12:10:32-07:00 DBG Initializing output plugins
2018-03-30T12:10:32-07:00 INFO Loading template enabled. Reading template file: C:\Users\sgorasia\Downloads\filebeat\filebeat.template.json
2018-03-30T12:10:32-07:00 INFO Loading template enabled for Elasticsearch 2.x. Reading template file: C:\Users\sgorasia\Downloads\filebeat\filebeat.template-es2x.json
2018-03-30T12:10:32-07:00 INFO Loading template enabled for Elasticsearch 6.x. Reading template file: C:\Users\sgorasia\Downloads\filebeat\filebeat.template-es6x.json
2018-03-30T12:10:32-07:00 INFO Elasticsearch url: http://localhost:9200
2018-03-30T12:10:32-07:00 INFO Activated elasticsearch as output plugin.
2018-03-30T12:10:32-07:00 DBG Create output worker
2018-03-30T12:10:32-07:00 DBG No output is defined to store the topology. The server fields might not be filled.
2018-03-30T12:10:32-07:00 INFO Publisher name: 5CG722343K
2018-03-30T12:10:32-07:00 INFO Flush Interval set to: 1s
2018-03-30T12:10:32-07:00 INFO Max Bulk Size set to: 50
2018-03-30T12:10:32-07:00 DBG create bulk processing worker (interval=1s, bulk size=50)
2018-03-30T12:10:32-07:00 INFO filebeat start running.
2018-03-30T12:10:32-07:00 INFO Registry file set to: C:\ProgramData\filebeat\registry
2018-03-30T12:10:32-07:00 INFO Loading registrar data from C:\ProgramData\filebeat\registry
2018-03-30T12:10:32-07:00 DBG Windows is interactive: false
2018-03-30T12:10:32-07:00 INFO States Loaded from registrar: 10
2018-03-30T12:10:32-07:00 INFO Loading Prospectors: 2
2018-03-30T12:10:32-07:00 INFO Starting Registrar
2018-03-30T12:10:32-07:00 INFO Start sending events to output
2018-03-30T12:10:32-07:00 DBG File Configs: [C:\TestRail\TestRailResults14.json]
2018-03-30T12:10:32-07:00 INFO Starting spooler: spool_size: 2048; idle_timeout: 5s
2018-03-30T12:10:32-07:00 DBG exclude_files: []
2018-03-30T12:10:32-07:00 DBG New state added for C:\TestRail\TestRailResults14.json
2018-03-30T12:10:32-07:00 INFO Prospector with previous states loaded: 1
2018-03-30T12:10:32-07:00 INFO Starting prospector of type: log; id: 3140866685714624168
2018-03-30T12:10:32-07:00 DBG Start next scan
2018-03-30T12:10:32-07:00 DBG File Configs: [C:\TestRail\TestRailResults15.json]
2018-03-30T12:10:32-07:00 DBG exclude_files: []
2018-03-30T12:10:32-07:00 DBG New state added for C:\TestRail\TestRailResults15.json
2018-03-30T12:10:32-07:00 INFO Prospector with previous states loaded: 1
2018-03-30T12:10:32-07:00 INFO Starting prospector of type: log; id: 10374277926638004162
2018-03-30T12:10:32-07:00 DBG Check file for harvesting: C:\TestRail\TestRailResults14.json
2018-03-30T12:10:32-07:00 INFO Loading and starting Prospectors completed. Enabled prospectors: 2
2018-03-30T12:10:32-07:00 DBG Start next scan
2018-03-30T12:10:32-07:00 DBG Update existing file for harvesting: C:\TestRail\TestRailResults14.json, offset: 261
2018-03-30T12:10:32-07:00 DBG Resuming harvesting of file: C:\TestRail\TestRailResults14.json, offset: 261
2018-03-30T12:10:32-07:00 DBG Check file for harvesting: C:\TestRail\TestRailResults15.json
2018-03-30T12:10:32-07:00 DBG Update existing file for harvesting: C:\TestRail\TestRailResults15.json, offset: 267
2018-03-30T12:10:32-07:00 DBG Resuming harvesting of file: C:\TestRail\TestRailResults15.json, offset: 267
2018-03-30T12:10:32-07:00 DBG Set previous offset for file: C:\TestRail\TestRailResults14.json. Offset: 261
2018-03-30T12:10:32-07:00 DBG Setting offset for file: C:\TestRail\TestRailResults14.json. Offset: 261
2018-03-30T12:10:32-07:00 DBG Prospector states cleaned up. Before: 1, After: 1
2018-03-30T12:10:32-07:00 INFO Harvester started for file: C:\TestRail\TestRailResults14.json
2018-03-30T12:10:32-07:00 DBG Set previous offset for file: C:\TestRail\TestRailResults15.json. Offset: 267
2018-03-30T12:10:32-07:00 DBG Setting offset for file: C:\TestRail\TestRailResults15.json. Offset: 267
2018-03-30T12:10:32-07:00 DBG Prospector states cleaned up. Before: 1, After: 1
2018-03-30T12:10:32-07:00 ERR Error decoding JSON: EOF
2018-03-30T12:10:32-07:00 INFO Harvester started for file: C:\TestRail\TestRailResults15.json
2018-03-30T12:10:32-07:00 ERR Error decoding JSON: EOF
2018-03-30T12:10:32-07:00 DBG End of file reached: C:\TestRail\TestRailResults15.json; Backoff now.
2018-03-30T12:10:32-07:00 DBG End of file reached: C:\TestRail\TestRailResults14.json; Backoff now.
2018-03-30T12:10:33-07:00 DBG End of file reached: C:\TestRail\TestRailResults15.json; Backoff now.
2018-03-30T12:10:33-07:00 DBG End of file reached: C:\TestRail\TestRailResults14.json; Backoff now.
2018-03-30T12:10:35-07:00 DBG End of file reached: C:\TestRail\TestRailResults14.json; Backoff now.
2018-03-30T12:10:35-07:00 DBG End of file reached: C:\TestRail\TestRailResults15.json; Backoff now.
2018-03-30T12:10:37-07:00 DBG Flushing spooler because of timeout. Events flushed: 6
2018-03-30T12:10:37-07:00 DBG Publish: {
"@timestamp": "2018-03-30T19:10:32.917Z",
"beat": {
"hostname": "5CG722343K",
"name": "5CG722343K",
"version": "5.5.1"
},
"fields": {
"document_type": "testrailresults15"
},
"input_type": "log",
"json_error": "Error decoding JSON: EOF",
"offset": 269,
"source": "C:\TestRail\TestRailResults15.json",
"type": "log"
}
2018-03-30T12:10:37-07:00 DBG Publish: {
"@timestamp": "2018-03-30T19:10:32.916Z",
"beat": {
"hostname": "5CG722343K",
"name": "5CG722343K",
"version": "5.5.1"
},
"fields": {
"document_type": "testrailresults14"
},
"input_type": "log",
"json_error": "Error decoding JSON: EOF",
"offset": 263,
"source": "C:\TestRail\TestRailResults14.json",
"type": "log"
}