Thanks for your help. But even using the following JSON with { and } start and ending still not working:
{
"Efectivo y equivalentes de efectivo (Nota 3)": {
"2016": "6,267,955",
"2017": "8,514,586"
},
"Deudores, neto (Nota 4)": {
"2016": "1,568,387",
"2017": "72,531"
},
"Total activos corrientes": {
"2016": "7,836,342",
"2017": "8,587,117"
},
"Cuentas por pagar (Nota 6)": {
"2016": "5,887,271",
"2017": "3,297,923"
},
"Impuestos y administraciones públicas (Nota 14)": {
"2016": "68,318",
"2017": "21,432"
},
"Beneficio a empleados (Nota 7)": {
"2016": "193,971",
"2017": "186,035"
},
"Total pasivos": {
"2016": "6,150,060",
"2017": "3,505,390"
},
"Superávit del año": {
"2016": "7,822,052",
"2017": "4,218,621"
},
"Total activos netos": {
"2016": "7,922,052",
"2017": "5,081,727"
},
"Total pasivos y saldos de activos netos": {
"2016": "14,072,112",
"2017": "8,587,117"
},
"Tarjeta Profesional": {
"2016": "61851-T Tarjeta",
"2017": "Profbsional 110141-T"
}
}
Same error:
[2019-04-05T18:13:52,075][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-04-05T18:13:53,954][WARN ][logstash.filters.json ] Error parsing json {:source=>"message", :raw=>"{\n \"Efectivo y equivalentes de efectivo (Nota 3)\": {\n \"2016\": \"6,267,955\",\n \"2017\": \"8,514,586\"\n },\n \"Deudores, neto (Nota 4)\": {\n \"2016\": \"1,568,387\",\n \"2017\": \"72,531\"\n },\n \"Total activos corrientes\": {\n \"2016\": \"7,836,342\",\n \"2017\": \"8,587,117\"\n },\n \"Cuentas por pagar (Nota 6)\": {\n \"2016\": \"5,887,271\",\n \"2017\": \"3,297,923\"\n },\n \"Impuestos y administraciones públicas (Nota 14)\": {\n \"2016\": \"68,318\",\n \"2017\": \"21,432\"\n },\n \"Beneficio a empleados (Nota 7)\": {\n \"2016\": \"193,971\",\n \"2017\": \"186,035\"\n },\n \"Total pasivos\": {\n \"2016\": \"6,150,060\",\n \"2017\": \"3,505,390\"\n },\n \"Superávit del año\": {\n \"2016\": \"7,822,052\",\n \"2017\": \"4,218,621\"\n },\n \"Total activos netos\": {\n \"2016\": \"7,922,052\",\n \"2017\": \"5,081,727\"\n },\n \"Total pasivos y saldos de activos netos\": {\n \"2016\": \"14,072,112\",\n \"2017\": \"8,587,117\"\n },\n \"Tarjeta Profesional\": {\n \"2016\": \"61851-T Tarjeta\",\n \"2017\": \"Profbsional 110141-T\"\n }", :exception=>#<LogStash::Json::ParserError: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (byte[])"{
"Efectivo y equivalentes de efectivo (Nota 3)": {
"2016": "6,267,955",
"2017": "8,514,586"
},
"Deudores, neto (Nota 4)": {
"2016": "1,568,387",
"2017": "72,531"
},
"Total activos corrientes": {
"2016": "7,836,342",
"2017": "8,587,117"
},
"Cuentas por pagar (Nota 6)": {
"2016": "5,887,271",
"2017": "3,297,923"
},
"Impuestos y administraciones públicas (Nota 14)": {
"2016": "68,318",
"2017": "21,432"
},
"Beneficio a empleados (Nota 7"[truncated 491 bytes]; line: 1, column: 1])
at [Source: (byte[])"{
"Efectivo y equivalentes de efectivo (Nota 3)": {
"2016": "6,267,955",
"2017": "8,514,586"
},
"Deudores, neto (Nota 4)": {
"2016": "1,568,387",
"2017": "72,531"
},
"Total activos corrientes": {
"2016": "7,836,342",
"2017": "8,587,117"
},
"Cuentas por pagar (Nota 6)": {
"2016": "5,887,271",
"2017": "3,297,923"
},
"Impuestos y administraciones públicas (Nota 14)": {
"2016": "68,318",
"2017": "21,432"
},
"Beneficio a empleados (Nota 7"[truncated 491 bytes]; line: 45, column: 995]>}
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
{
"message" => "{\n \"Efectivo y equivalentes de efectivo (Nota 3)\": {\n \"2016\": \"6,267,955\",\n \"2017\": \"8,514,586\"\n },\n \"Deudores, neto (Nota 4)\": {\n \"2016\": \"1,568,387\",\n \"2017\": \"72,531\"\n },\n \"Total activos corrientes\": {\n \"2016\": \"7,836,342\",\n \"2017\": \"8,587,117\"\n },\n \"Cuentas por pagar (Nota 6)\": {\n \"2016\": \"5,887,271\",\n \"2017\": \"3,297,923\"\n },\n \"Impuestos y administraciones públicas (Nota 14)\": {\n \"2016\": \"68,318\",\n \"2017\": \"21,432\"\n },\n \"Beneficio a empleados (Nota 7)\": {\n \"2016\": \"193,971\",\n \"2017\": \"186,035\"\n },\n \"Total pasivos\": {\n \"2016\": \"6,150,060\",\n \"2017\": \"3,505,390\"\n },\n \"Superávit del año\": {\n \"2016\": \"7,822,052\",\n \"2017\": \"4,218,621\"\n },\n \"Total activos netos\": {\n \"2016\": \"7,922,052\",\n \"2017\": \"5,081,727\"\n },\n \"Total pasivos y saldos de activos netos\": {\n \"2016\": \"14,072,112\",\n \"2017\": \"8,587,117\"\n },\n \"Tarjeta Profesional\": {\n \"2016\": \"61851-T Tarjeta\",\n \"2017\": \"Profbsional 110141-T\"\n }",
"@timestamp" => 2019-04-05T23:13:53.751Z,
"host" => "ofnanezn-AX370-Gaming-K5",
"tags" => [
[0] "multiline",
[1] "_jsonparsefailure"
],
"type" => "json",
"path" => "/home/miguel/ocr/demo/finanzas_ocr1.json",
"@version" => "1"
}