Error : DEP1630 : Invalid "TargetOsVersion" property - windows-store-apps

Note: The github project is here. I am using Visual Studio 2015 Community Edition. If you are able to run the program on your Windows 10 computer then you can help me much easier than those that don't.
I am trying to get a Windows Store App to work. It's basically the Wikipedia Windows Store App that was designed for Windows 8 to run on Windows 10 for my wiki instead. I took the source from Github created a new project association in the store. However, I can't actually debug the program yet. I get the following error when i try to run the code:
Severity Code Description Project File Line Source
Error Error : DEP1630 : Invalid "TargetOsVersion" property in the recipe file "C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\bin\x64\Debug\WikipediaMetroTest.build.appxrecipe" WikipediaMetroTest IntelliSense
I can't seem to figure out where this recipe file is at. Any help?
Here are the contents of the file:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Machine>8-1</Machine>
<WindowsUser>Paul</WindowsUser>
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
<SolutionConfiguration>Debug|x64</SolutionConfiguration>
<PackageArchitecture>x64</PackageArchitecture>
<PackageIdentityName>GamepadUniverse.PadPedia</PackageIdentityName>
<IntermediateOutputPath>C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\bld\x64\Debug\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<AppXManifest Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\bin\x64\Debug\AppxManifest.xml">
<PackagePath>AppxManifest.xml</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppXManifest>
</ItemGroup>
<ItemGroup>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\js\jquery.localize.js">
<PackagePath>js\jquery.localize.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\js\l10n-setup.js">
<PackagePath>js\l10n-setup.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\js\mediawiki.js">
<PackagePath>js\mediawiki.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\js\propertiesFileReader.js">
<PackagePath>js\propertiesFileReader.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\js\default.js">
<PackagePath>js\default.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\js\find.js">
<PackagePath>js\find.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\js\jquery-1.7.2.js">
<PackagePath>js\jquery-1.7.2.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\js\share.js">
<PackagePath>js\share.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\js\wikiview.js">
<PackagePath>js\wikiview.js</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ady-cyrl.properties">
<PackagePath>messages\messages-ady-cyrl.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-aeb.properties">
<PackagePath>messages\messages-aeb.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-af.properties">
<PackagePath>messages\messages-af.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ar.properties">
<PackagePath>messages\messages-ar.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-arc.properties">
<PackagePath>messages\messages-arc.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-arn.properties">
<PackagePath>messages\messages-arn.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-as.properties">
<PackagePath>messages\messages-as.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ast.properties">
<PackagePath>messages\messages-ast.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-avk.properties">
<PackagePath>messages\messages-avk.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ba.properties">
<PackagePath>messages\messages-ba.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-bar.properties">
<PackagePath>messages\messages-bar.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-be-tarask.properties">
<PackagePath>messages\messages-be-tarask.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-bg.properties">
<PackagePath>messages\messages-bg.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-bjn.properties">
<PackagePath>messages\messages-bjn.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-bn.properties">
<PackagePath>messages\messages-bn.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-br.properties">
<PackagePath>messages\messages-br.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-bs.properties">
<PackagePath>messages\messages-bs.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ca.properties">
<PackagePath>messages\messages-ca.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ckb.properties">
<PackagePath>messages\messages-ckb.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-cs.properties">
<PackagePath>messages\messages-cs.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-cv.properties">
<PackagePath>messages\messages-cv.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-cy.properties">
<PackagePath>messages\messages-cy.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-da.properties">
<PackagePath>messages\messages-da.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-de.properties">
<PackagePath>messages\messages-de.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-diq.properties">
<PackagePath>messages\messages-diq.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-dsb.properties">
<PackagePath>messages\messages-dsb.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-el.properties">
<PackagePath>messages\messages-el.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-en.properties">
<PackagePath>messages\messages-en.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-eo.properties">
<PackagePath>messages\messages-eo.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-es-formal.properties">
<PackagePath>messages\messages-es-formal.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-es.properties">
<PackagePath>messages\messages-es.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-et.properties">
<PackagePath>messages\messages-et.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-eu.properties">
<PackagePath>messages\messages-eu.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-fa.properties">
<PackagePath>messages\messages-fa.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-fi.properties">
<PackagePath>messages\messages-fi.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-fo.properties">
<PackagePath>messages\messages-fo.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-fr.properties">
<PackagePath>messages\messages-fr.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-frp.properties">
<PackagePath>messages\messages-frp.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-fur.properties">
<PackagePath>messages\messages-fur.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-gd.properties">
<PackagePath>messages\messages-gd.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-gl.properties">
<PackagePath>messages\messages-gl.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-gu.properties">
<PackagePath>messages\messages-gu.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-he.properties">
<PackagePath>messages\messages-he.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-hi.properties">
<PackagePath>messages\messages-hi.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-hr.properties">
<PackagePath>messages\messages-hr.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-hsb.properties">
<PackagePath>messages\messages-hsb.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-hu.properties">
<PackagePath>messages\messages-hu.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ia.properties">
<PackagePath>messages\messages-ia.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-id.properties">
<PackagePath>messages\messages-id.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ilo.properties">
<PackagePath>messages\messages-ilo.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-is.properties">
<PackagePath>messages\messages-is.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-it.properties">
<PackagePath>messages\messages-it.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ja.properties">
<PackagePath>messages\messages-ja.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ka.properties">
<PackagePath>messages\messages-ka.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-khw.properties">
<PackagePath>messages\messages-khw.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-kk-cyrl.properties">
<PackagePath>messages\messages-kk-cyrl.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-km.properties">
<PackagePath>messages\messages-km.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-kn.properties">
<PackagePath>messages\messages-kn.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ko.properties">
<PackagePath>messages\messages-ko.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ksh.properties">
<PackagePath>messages\messages-ksh.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ky.properties">
<PackagePath>messages\messages-ky.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-lad.properties">
<PackagePath>messages\messages-lad.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-lb.properties">
<PackagePath>messages\messages-lb.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-li.properties">
<PackagePath>messages\messages-li.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ln.properties">
<PackagePath>messages\messages-ln.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-lt.properties">
<PackagePath>messages\messages-lt.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-lus.properties">
<PackagePath>messages\messages-lus.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-lv.properties">
<PackagePath>messages\messages-lv.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-map-bms.properties">
<PackagePath>messages\messages-map-bms.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-mk.properties">
<PackagePath>messages\messages-mk.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ml.properties">
<PackagePath>messages\messages-ml.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-mr.properties">
<PackagePath>messages\messages-mr.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ms.properties">
<PackagePath>messages\messages-ms.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-mt.properties">
<PackagePath>messages\messages-mt.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-nds-nl.properties">
<PackagePath>messages\messages-nds-nl.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ne.properties">
<PackagePath>messages\messages-ne.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-nl.properties">
<PackagePath>messages\messages-nl.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-nn.properties">
<PackagePath>messages\messages-nn.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-no.properties">
<PackagePath>messages\messages-no.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-or.properties">
<PackagePath>messages\messages-or.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-os.properties">
<PackagePath>messages\messages-os.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-pa.properties">
<PackagePath>messages\messages-pa.properties</PackagePath>
</AppxPackagedFile>
<PackagePath>messages\messages-sl.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-sq.properties">
<PackagePath>messages\messages-sq.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-sr-ec.properties">
<PackagePath>messages\messages-sr-ec.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-sr-el.properties">
<PackagePath>messages\messages-sr-el.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-sv.properties">
<PackagePath>messages\messages-sv.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-sw.properties">
<PackagePath>messages\messages-sw.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-ta.properties">
<PackagePath>messages\messages-ta.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-te.properties">
<PackagePath>messages\messages-te.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-th.properties">
<PackagePath>messages\messages-th.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-zh-hk.properties">
<PackagePath>messages\messages-zh-hk.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\assets\www\messages\messages-zh-tw.properties">
<PackagePath>messages\messages-zh-tw.properties</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\about.html">
<PackagePath>about.html</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\default.html">
<PackagePath>default.html</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\css\target.css">
<PackagePath>css\target.css</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\css\default.css">
<PackagePath>css\default.css</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\secondary-tile.scale-100.png">
<PackagePath>images\secondary-tile.scale-100.png</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\secondary-tile.scale-140.png">
<PackagePath>images\secondary-tile.scale-140.png</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\secondary-tile.scale-180.png">
<PackagePath>images\secondary-tile.scale-180.png</PackagePath>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\splashscreen.scale-100.png">
<PackagePath>images\splashscreen.scale-100.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\splashscreen.scale-140.png">
<PackagePath>images\splashscreen.scale-140.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\splashscreen.scale-180.png">
<PackagePath>images\splashscreen.scale-180.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\images\storelogo.png">
<PackagePath>images\storelogo.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\win8-wide-tile.scale-100.png">
<PackagePath>win8-wide-tile.scale-100.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\win8-wide-tile.scale-140.png">
<PackagePath>win8-wide-tile.scale-140.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\win8-wide-tile.scale-180.png">
<PackagePath>win8-wide-tile.scale-180.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\win8-wide-tile.scale-80.png">
<PackagePath>win8-wide-tile.scale-80.png</PackagePath>
<ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
</AppxPackagedFile>
<AppxPackagedFile Include="C:\Users\Paul\OneDrive\GITHUB\PadPedia WSA\WikipediaMetro\WikipediaMetroTest\bin\x64\Debug\ReverseMap\resources.pri">
<PackagePath>resources.pri</PackagePath>
</AppxPackagedFile>
</ItemGroup>
<ItemGroup>
<ResolvedSDKReference Include="C:\Program Files %28x86%29\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\Microsoft.WinJS.2.0\1.0\">
<Name>Microsoft.WinJS.2.0</Name>
<Version>1.0.9600.17018</Version>
<Architecture>Neutral</Architecture>
<FrameworkIdentity>Name=Microsoft.WinJS.2.0, MinVersion=1.0.9600.17018</FrameworkIdentity>
<AppxLocation>C:\Program Files %28x86%29\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\Microsoft.WinJS.2.0\1.0\Microsoft.WinJS.2.0.appx</AppxLocation>
<MoreInfo>http://go.microsoft.com/fwlink/%3fLinkId=260891</MoreInfo>
</ResolvedSDKReference>
</ItemGroup>
</Project>
Does it have anything to do with the following line?:
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>

Move my comment to answer as it works for OP:
The github project you've mentioned is built with Visual Studio 2013, if you want to load it in Windows 10 with Visual Studio 2015 Community, you can edit its project file and change the VisualStudioVersion. You can open WikipediaMetroTest.jsproj with "Notepad", find the <VisualStudioVersion> element and change it to <VisualStudioVersion>14.0</VisualStudioVersion>. Then you can load and debug the project correctly.

Related

Asserts folder mock jsons are not accessible on azure deployed angular webapp

I have an angular application deployed in azure webapp.
I have used mock jsons to load data for few apis, which are residing in assets/jsons folder.
I am able to access a text file which is residing in same path via url like below
https://{myapp}.azurewebsites.net/assets/jsons/users.txt
But when I try to access a json file which is residing in same path like below I am getting error
https://{myapp}.azurewebsites.net/assets/jsons/insights.json
"The resource you are looking for has been removed, had its name
changed, or is temporarily unavailable."
I have added that folder(s) to assets in angular.json
"build": {
"builder": "#angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/web",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
"src/assets/jsons"
],
"styles": [
"./node_modules/#angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"scripts": []
}
Application is not working as it is not able to load the data from jsons.Can you please assist in overcoming this issue?
Adding a file with web.config under src/ with below contents
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
<rewrite>
<rules>
<rule name="Angular Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="./index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
And including it in angular.json assets section helped to get it fixed.
"assets": [
"src/favicon.ico",
"src/assets",
"src/web.config"
],
Thanks to reference link provided by Misha Mashina.

Jasperreports can't use sort fields on nested list parent

I have the following JSON:
{
"data": [
{
"name": "apple",
"sorts": [
{ "name": "green", "number": "6", "comment": "green apples are nice", "suppliers": [{"name": "Supplier1"},{"name": "Supplier2"}] },
{ "name": "yellow", "number": "1", "suppliers": [] },
{ "name": "red", "number": "2", "suppliers": [{"name": "supplier1"}] }
]
},
{
"name": "banana",
"sorts": [
]
},
{
"name": "pear",
"sorts": [
{ "name": "green", "number": "6", "comment": "green pears are sour", "suppliers": [{"name": "supplier4"}] },
{ "name": "purple", "number": "0", "comment": "so far we haven't seen purple pears", "suppliers": [{"name": "supplier1"},{"name": "supplier4"}] }
]
}
]
}
And this is my JRXML:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.13.0.final using JasperReports Library version 6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="af456afc-4615-4564-8841-81929ce2447f">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Adapter"/>
<style name="listRow">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT} % 2 == 0]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<subDataset name="DatasetFruitsSortAll" uuid="5961129e-70f0-4d98-8d4e-524f2bbb28f9">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Adapter"/>
<queryString language="JSONQL">
<![CDATA[data.sorts]]>
</queryString>
<field name="fruitName" class="java.lang.String">
<property name="net.sf.jasperreports.jsonql.field.expression" value="^^.name"/>
<fieldDescription><![CDATA[fruitName]]></fieldDescription>
</field>
<field name="name" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="name"/>
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="number" class="java.lang.Integer">
<property name="net.sf.jasperreports.json.field.expression" value="number"/>
<fieldDescription><![CDATA[number]]></fieldDescription>
</field>
<field name="comment" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="comment"/>
<fieldDescription><![CDATA[comment]]></fieldDescription>
</field>
</subDataset>
<subDataset name="DatasetSuppliers" uuid="4af8f526-8e16-4e58-8c2e-0a7dcf7998ba">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Adapter"/>
<queryString language="JSON">
<![CDATA[data.sorts.suppliers]]>
</queryString>
<field name="name" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="name"/>
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
</subDataset>
<queryString language="JSONQL">
<![CDATA[]]>
</queryString>
<detail>
<band height="125" splitType="Stretch">
<componentElement>
<reportElement x="0" y="0" width="595" height="30" isRemoveLineWhenBlank="true" uuid="c4206620-ee0d-4e50-9336-1e1be2723c6f"/>
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
<datasetRun subDataset="DatasetFruitsSortAll" uuid="b9df9d8f-7ada-47eb-84e6-4870547e7bd9">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("data.sorts.*")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="595">
<frame>
<reportElement style="listRow" x="0" y="0" width="590" height="30" uuid="3b3fba3d-e4c5-499c-a752-b6caa847a448"/>
<textField>
<reportElement x="0" y="0" width="100" height="30" uuid="bd3ac2b2-1803-4e0f-afa8-a0bdcc54e6fb"/>
<textFieldExpression><![CDATA[$F{fruitName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="130" y="0" width="100" height="30" uuid="be871dcb-61a0-49bd-b565-af8aa27bc7f4"/>
<textFieldExpression><![CDATA[$F{number}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="230" y="0" width="190" height="30" uuid="bea6dae7-bca2-4c0a-a0b5-443a859c20ac"/>
<textFieldExpression><![CDATA[$F{comment}]]></textFieldExpression>
</textField>
<componentElement>
<reportElement x="490" y="0" width="100" height="30" uuid="af5e5156-cdae-45eb-b423-dbdbebad8879"/>
<jr:list>
<datasetRun subDataset="DatasetSuppliers" uuid="d3430f43-a76c-47d8-b592-c6dae7fbf083">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("suppliers")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="100">
<textField>
<reportElement x="0" y="0" width="100" height="30" uuid="8f7ab53c-b3c2-4d4d-8266-3f04efed81d7"/>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</frame>
</jr:listContents>
</jr:list>
</componentElement>
</band>
</detail>
</jasperReport>
That gives the following result:
Now I want to sort the list on fruitnames. I added <sortField name="fruitName"/> to the subDataset. Unfortunately I get the following error:
net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: ((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("suppliers")
at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:551)
at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$18(ReportController.java:526)
at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: ((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("suppliers")
at net.sf.jasperreports.components.list.VerticalFillList.prepare(VerticalFillList.java:150)
at net.sf.jasperreports.engine.fill.JRFillComponentElement.prepare(JRFillComponentElement.java:152)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:542)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:453)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:428)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2602)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:825)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:266)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:110)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:621)
at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135)
at java.lang.Thread.run(Thread.java:748)
Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: ((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("suppliers")
at net.sf.jasperreports.engine.fill.JREvaluator.handleEvaluationException(JREvaluator.java:294)
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:328)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:673)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:641)
at net.sf.jasperreports.engine.fill.JRFillDataset.evaluateExpression(JRFillDataset.java:2028)
at net.sf.jasperreports.components.list.FillDatasetRun.evaluateDatasetExpression(FillDatasetRun.java:237)
at net.sf.jasperreports.components.list.BaseFillList$1.evaluate(BaseFillList.java:91)
at net.sf.jasperreports.components.list.FillDatasetRun.evaluate(FillDatasetRun.java:131)
at net.sf.jasperreports.components.list.BaseFillList.evaluate(BaseFillList.java:115)
at net.sf.jasperreports.engine.fill.JRFillComponentElement.evaluate(JRFillComponentElement.java:110)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:383)
at net.sf.jasperreports.engine.fill.JRFillFrame.evaluate(JRFillFrame.java:172)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:383)
at net.sf.jasperreports.components.list.FillListContents.evaluateContents(FillListContents.java:85)
at net.sf.jasperreports.components.list.VerticalFillList.prepare(VerticalFillList.java:110)
... 11 more
Caused by: java.lang.ClassCastException: net.sf.jasperreports.engine.fill.SortedDataSource cannot be cast to net.sf.jasperreports.engine.data.JsonQLDataSource
at Blank_A4_DatasetFruitsSortAll_1598446444233_560474.evaluate(Blank_A4_DatasetFruitsSortAll_1598446444233_560474:86)
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:313)
... 24 more
What am I doing wrong?
Defining a sort field will result in an in memory data source being used for the report, which means that $P{REPORT_DATA_SOURCE} is no longer the original JsonQLDataSource object.
Because of that, the data source expression ((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("suppliers") fails.
The solution is to use the SUB_DATA_SOURCE builtin function instead of JsonQLDataSource.subDataSource. The expression will look like this:
<dataSourceExpression><![CDATA[SUB_DATA_SOURCE("suppliers")]]></dataSourceExpression>
You will need JasperReports 6.13.0 or newer for this, and a jasperreports-functions jar in your application (you can get it via Maven).

Babel throws a type error when exporting aggregates

When running my gulp task, I get the following error:
SyntaxError in plugin "gulp-babel"
Message:
/Users/******/Repos/******/src/scripts/config/index.js: Unexpected export specifier type
> 1 | export * as constants from './constants';
^^^^^^^^^^^^^^
I'm not sure why this is as I am running the required plugins to allow ES6 imports/exports, or so I thought...
.babelrc
{
"presets": [
"#babel/preset-env",
"#babel/preset-react"
],
"plugins": [
"add-module-exports",
"#babel/plugin-transform-modules-commonjs",
"#babel/plugin-proposal-class-properties",
"#babel/plugin-proposal-export-default-from"
]
}
package.json - I've included the full list, most of it will probably be irrelevant but just in case there are any known package conflicts.
"dependencies": {
"#babel/polyfill": "^7.8.3",
"classnames": "^2.2.5",
"concurrent-transform": "^1.0.0",
"deep-freeze": "0.0.1",
"eslint": "^3.17.1",
"eslint-plugin-babel": "^3.2.0",
"eslint-plugin-react": "^6.10.0",
"git-rev": "^0.2.1",
"gulp-awspublish": "^4.0.0",
"gulp-sftp": "^0.1.5",
"moment": "^2.18.1",
"moment-timezone": "^0.5.26",
"path": "^0.12.7",
"qs": "^6.4.0",
"react": "^16.8.4",
"react-addons-css-transition-group": "^15.0.2",
"react-dom": "^16.8.4",
"react-fastclick": "^3.0.2",
"react-redux": "^4.4.5",
"react-router": "^3.2.5",
"react-router-redux": "^4.0.8",
"react-string-replace": "^0.4.0",
"react-transition": "^1.0.3",
"react-transition-group": "^2.7.0",
"redux": "^3.5.2",
"redux-thunk": "^2.3.0",
"underscore": "^1.8.3"
},
"devDependencies": {
"#babel/core": "^7.8.3",
"#babel/plugin-proposal-class-properties": "^7.8.3",
"#babel/plugin-proposal-export-default-from": "^7.8.3",
"#babel/plugin-transform-modules-commonjs": "^7.8.3",
"#babel/preset-env": "^7.8.3",
"#babel/preset-es2015": "^7.0.0-beta.53",
"#babel/preset-react": "^7.8.3",
"axios": "^0.15.3",
"babel-core": "^6.26.3",
"babel-eslint": "^6.0.4",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.6",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-polyfill": "^6.26.0",
"babelify": "^9.0.0",
"chai": "^3.5.0",
"enzyme": "^2.7.1",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.1",
"gulp-babel": "^8.0.0",
"gulp-browserify": "^0.5.1",
"gulp-clean": "^0.3.2",
"gulp-color": "0.0.1",
"gulp-connect": "^5.0.0",
"gulp-cssnano": "^2.1.2",
"gulp-htmlmin": "^3.0.0",
"gulp-livereload": "^3.8.1",
"gulp-load-plugins": "^1.5.0",
"gulp-mocha": "^4.3.0",
"gulp-param": "^0.6.4",
"gulp-rename": "^1.2.2",
"gulp-sass": "^3.1.0",
"gulp-sass-glob": "^1.0.8",
"gulp-sourcemaps": "^2.4.1",
"gulp-ssh": "^0.6.0",
"gulp-streamify": "^1.0.2",
"gulp-uglify": "^2.1.0",
"gulp-watch": "^4.3.11",
"gulp-webserver": "^0.9.1",
"jest": "^25.1.0",
"jsdom": "^9.12.0",
"lint-staged": "^3.4.0",
"mocha": "^3.2.0",
"mocha-jsdom": "^1.1.0",
"mocha-junit-reporter": "^1.13.0",
"mock-require": "^2.0.1",
"pre-commit": "^1.2.2",
"prop-types": "^15.5.10",
"react-addons-create-fragment": "^15.6.0",
"react-addons-test-utils": "^15.6.0",
"react-tools": "^0.13.3",
"redux-mock-store": "^1.2.3",
"run-sequence": "^1.2.2"
}
Any help appreciated - I'm really at a loss for this one.
(Using node v9.11.2)
From this thread
The problem is that we added export * as ns from "foo" support by
default to #babel/parser (in #10521) but not to #babel/preset-env.
As a workaround, you can enable
#babel/plugin-proposal-export-namespace-from in your config.
So add #babel/plugin-proposal-export-namespace-from to your .babelrc and dev dependencies and you should be OK!
It looks like eventually this will be built into the preset-env so you won't have to use a plugin.

Nested JSON in ODATA SAPUI5 mockup

I am using a nested JSON file as mockup data in a ODATA SAPUI5 application, but I cannot access the nested data.
JSON content
[{
"testcase": {
"specification": "SRS PR 28717 – Deposit in Brazilian Reais",
"execution": {
"description": "DESC",
"bca_cn_acct_01": {
"header": {
"section": "Field / Section Name",
"data": "Data to Enter / Value to Select",
"action": "Activity / Check / Comment"
},
"frame": {
"ID": 1,
"title": "Create Account: Initial Screen",
"data": [{
"key": "Contract Start",
"value": "02/16/2000",
"action": ""
}, {
"key": "Contract Manager",
"value": "GH_RAMOSCL",
"action": ""
}, {
"key": "Product",
"value": "BR_IOFTC3",
"action": ""
}, {
"key": "Account Holder",
"value": "GH_IOF_COR",
"action": "Press Enter"
}]
}
}
},
"result": "Teste"
}}]
In my view file, I want to access the data inside the tag, as a list:
<core:View controllerName="sap.ui.demo.MockServer.controller.App" xmlns:core="sap.ui.core" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="sap.m">
<!-- <List headerText="{i18n>headerText}" id="list" items="{/Meetups}" noDataText="{i18n>noDataText}">
<items>
<ObjectListItem number="{ path: 'EventDate', type: 'sap.ui.model.type.DateTime', formatOptions: { style: 'medium' } }" title="{Title}">
<attributes>
<ObjectAttribute text="{Description}"/>
</attributes>
</ObjectListItem>
</items>
</List>
<Button press="onPressAction" text="{i18n>loadFirstItems}"></Button> -->
<List headerText="{i18n>headerText}" id="list" items="{/Meetups}" noDataText="{i18n>noDataText}">
<items>
<ObjectListItem number="{ path: 'EventDate', type: 'sap.ui.model.type.DateTime', formatOptions: { style: 'medium' } }"
title="{testcase/execution/description}">
<attributes>
<ObjectAttribute text="{specification}"/>
</attributes>
</ObjectListItem>
</items>
</List>
<Table id="table" items="{/Meetups}">
<columns>
<Column width="12em">
<Text text="Field / Section Name"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true">
<Text text="Data to Enter / Value to Select"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true">
<Text text="Activity / Check / Comment"/>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier title="{testcase/execution/bca_cn_acct_01/frame/data/key}" class="sapMTableContentMargin"/>
<!-- <Text text="{testcase/execution/bca_cn_acct_01/bca_dte_event_begin_d}" /> -->
<Text text="{testcase/execution/bca_cn_acct_01/frame/data/value}"/>
</cells>
</ColumnListItem>
</items>
</Table>
<Button press="onPressAction" text="{i18n>loadFirstItems}"></Button>
However, data from fields key and value are not retrieved as list, although they are an array inside the JSON data tag.
I use as base the sample tutorial from SAPUI5 library: https://sapui5.hana.ondemand.com/#docs/guide/7a78f1b707c248fd9ec53dcb5f10814c.html
And below you can find the metadata file I have been using:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<edmx:Edmx Version="1.0"
xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
<edmx:DataServices
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
<Schema Namespace="NerdMeetup.Models"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns="http://schemas.microsoft.com/ado/2006/04/edm">
<EntityType Name="Meetup">
<ComplexType Name="testcase">
<ComplexType Name="execution">
<!-- Create Payment Item -->
<ComplexType Name="bca_cn_acct_01">
<ComplexType Name="header">
<Property Name="section" Type="Edm.String" Nullable="false" />
<Property Name="data" Type="Edm.String" Nullable="false" />
<Property Name="action" Type="Edm.String" Nullable="false" />
</ComplexType>
<ComplexType Name="frame">
<Property Name="ID" Type="Edm.Int32" Nullable="false" />
<Property Name="title" Type="Edm.String" Nullable="false" />
<ComplexType Name="data">
<Property Name="key" Type="Edm.Int32" Nullable="false" />
<Property Name="value" Type="Edm.Int32" Nullable="false" />
<Property Name="action" Type="Edm.Int32" Nullable="true" />
</ComplexType>
</ComplexType>
<Property Name="bca_dte_event_begin_d" Type="Edm.String" Nullable="false" />
<Property Name="bca_dte_orgunit_cnmgt" Type="Edm.String" Nullable="false" />
<Property Name="fspr_prodext_y" Type="Edm.String" Nullable="false" />
<Property Name="bca_dte_bupa_acchold" Type="Edm.String" Nullable="false" />
</ComplexType>
</ComplexType>
<Property Name="specification" Type="Edm.String" Nullable="true" />
</ComplexType>
</EntityType>
<EntityContainer Name="NerdMeetups" m:IsDefaultEntityContainer="true">
<EntitySet Name="Meetups" EntityType="NerdMeetup.Models.Meetup" />
<FunctionImport Name="FindUpcomingMeetups" EntitySet="Meetups" ReturnType="Collection(NerdMeetup.Models.Meetup)" m:HttpMethod="GET" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
Any ideas?
Hugs
I guess you can either bind the entire array:
{testcase/execution/bca_cn_acct_01/frame/data/}
Or bind an specific element of the array:
{testcase/execution/bca_cn_acct_01/frame/data/0/key}
You could also use a formatter to receive an array and concatenate all the keys of the array check the
Formatter SAPUI5 documentation

logstash json filter not parsing. getting _jsonparsefailure although the json is correct

I'm trying to parse this json message:
{"messageType": "cagw","uniqueID": "8e760b6b7c4e937ebb7063746dd945ecee782cac","sessionID": "6c43b719e0e457784a0a6d5dfef96a82"}
Although the JSON format is correct,
elasticsearch tag it as _jsonparsefailure
my logstash conf:
input {
syslog {
port => 5001
type => "syslog"
codec => json
}
}
filter {
if [type] == "syslog" {
json {
source => "message"
}
}
}
output {
elasticsearch {
}
}
My Logstash debug output:
{:timestamp=>"2015-12-17T10:17:51.613000+0000", :message=>"new connection", :client=>"127.0.0.1:54660", :level=>:info, :file=>"logstash/inputs/syslog.rb", :line=>"170", :method=>"tcp_receiver"}
{:timestamp=>"2015-12-17T10:17:51.625000+0000", :message=>"JSON parse failure. Falling back to plain-text", :error=>#<LogStash::Json::ParserError: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: [B#41caf092; line: 1, column: 2]>, :data=>"<13>Dec 17 10:17:51 ip-172-31-27-253 ubuntu: {messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", :level=>:info, :file=>"logstash/codecs/json.rb", :line=>"53", :method=>"decode"}
{:timestamp=>"2015-12-17T10:17:51.629000+0000", :message=>"Running grok filter", :event=>#<LogStash::Event:0x43943d03 #metadata_accessors=#<LogStash::Util::Accessors:0x43e35cfd #store={}, #lut={}>, #cancelled=false, #data={"message"=>"<13>Dec 17 10:17:51 ip-172-31-27-253 ubuntu: {messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1"}, #metadata={}, #accessors=#<LogStash::Util::Accessors:0x6465de36 #store={"message"=>"<13>Dec 17 10:17:51 ip-172-31-27-253 ubuntu: {messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1"}, #lut={"type"=>[{"message"=>"<13>Dec 17 10:17:51 ip-172-31-27-253 ubuntu: {messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1"}, "type"], "host"=>[{"message"=>"<13>Dec 17 10:17:51 ip-172-31-27-253 ubuntu: {messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1"}, "host"]}>>, :level=>:debug, :file=>"logstash/filters/grok.rb", :line=>"283", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.632000+0000", :message=>"Regexp match object", :names=>["POSINT:priority", "SYSLOGTIMESTAMP:timestamp", "TIMESTAMP_ISO8601:timestamp8601", "NONNEGINT:facility", "NONNEGINT:priority", "SYSLOGHOST:logsource", "PROG:program", "POSINT:pid", "GREEDYDATA:message"], :captures=>["13", "Dec 17 10:17:51", nil, nil, nil, "ip-172-31-27-253", "ubuntu", nil, "{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n"], :level=>:debug, :file=>"grok-pure.rb", :line=>"179", :method=>"match_and_capture"}
{:timestamp=>"2015-12-17T10:17:51.635000+0000", :message=>"Event now: ", :event=>#<LogStash::Event:0x43943d03 #metadata_accessors=#<LogStash::Util::Accessors:0x43e35cfd #store={}, #lut={}>, #cancelled=false, #data={"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, #metadata={}, #accessors=#<LogStash::Util::Accessors:0x6465de36 #store={"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, #lut={"type"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "type"], "host"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "host"], "message"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "message"], "priority"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "priority"], "timestamp"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "timestamp"], "logsource"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "logsource"], "program"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.627Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>"13", "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu"}, "program"]}>>, :level=>:debug, :file=>"logstash/filters/grok.rb", :line=>"303", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.636000+0000", :message=>"Date filter: received event", :type=>"syslog", :level=>:debug, :file=>"logstash/filters/date.rb", :line=>"206", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.636000+0000", :message=>"Date filter looking for field", :type=>"syslog", :field=>"timestamp", :level=>:debug, :file=>"logstash/filters/date.rb", :line=>"209", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.000Z", :message=>"Date parsing done", :value=>"Dec 17 10:17:51", :level=>:debug, :file=>"logstash/filters/date.rb", :line=>"239", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.654000+0000", :message=>"filter received", :event=>{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, :level=>:debug, :file=>"(eval)", :line=>"40", :method=>"filter_func"}
{:timestamp=>"2015-12-17T10:17:51.655000+0000", :message=>"Running json filter", :event=>#<LogStash::Event:0x43943d03 #metadata_accessors=#<LogStash::Util::Accessors:0x43e35cfd #store={}, #lut={}>, #cancelled=false, #data={"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, #metadata={}, #accessors=#<LogStash::Util::Accessors:0x6465de36 #store={"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, #lut={"type"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "type"], "host"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "host"], "message"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "message"], "priority"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "priority"], "timestamp"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "timestamp"], "logsource"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "logsource"], "program"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "program"], "tags"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "tags"], "severity"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "severity"], "facility"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "facility"], "timestamp8601"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "timestamp8601"], "#timestamp"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "#timestamp"], "facility_label"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "facility_label"], "severity_label"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "severity_label"], "[type]"=>[{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, "type"]}>>, :level=>:debug, :file=>"logstash/filters/json.rb", :line=>"58", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.657000+0000", :message=>"Trouble parsing json", :source=>"message", :raw=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", :exception=>#<LogStash::Json::ParserError: Unexpected character ('m' (code 109)): was expecting double-quote to start field name
at [Source: [B#6e3bc278; line: 1, column: 3]>, :level=>:warn, :file=>"logstash/filters/json.rb", :line=>"90", :method=>"filter"}
{:timestamp=>"2015-12-17T10:17:51.658000+0000", :message=>"output received", :event=>{"message"=>"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\n", "tags"=>["_jsonparsefailure"], "#version"=>"1", "#timestamp"=>"2015-12-17T10:17:51.000Z", "type"=>"syslog", "host"=>"127.0.0.1", "priority"=>13, "timestamp"=>"Dec 17 10:17:51", "logsource"=>"ip-172-31-27-253", "program"=>"ubuntu", "severity"=>5, "facility"=>1, "facility_label"=>"user-level", "severity_label"=>"Notice"}, :level=>:debug, :file=>"(eval)", :line=>"46", :method=>"output_func"}
{:timestamp=>"2015-12-17T10:17:51.731000+0000", :message=>"Flushing buffer at interval", :instance=>"#<LogStash::Outputs::ElasticSearch::Buffer:0x27906bc0 #operations_mutex=#<Mutex:0x29579142>, #max_size=500, #operations_lock=#<Java::JavaUtilConcurrentLocks::ReentrantLock:0x2d6800b0>, #submit_proc=#<Proc:0x4c0023df#/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.2.0-java/lib/logstash/outputs/elasticsearch/common.rb:55>, #logger=#<Cabin::Channel:0x59c8769c #metrics=#<Cabin::Metrics:0x34489095 #metrics_lock=#<Mutex:0x8456436>, #metrics={}, #channel=#<Cabin::Channel:0x59c8769c ...>>, #subscriber_lock=#<Mutex:0x4516a03a>, #level=:debug, #subscribers={12590=>#<Cabin::Outputs::IO:0x2f4cbdd1 #io=#<IO:fd 1>, #lock=#<Mutex:0xc0b18da>>}, #data={}>, #last_flush=2015-12-17 10:17:50 +0000, #flush_interval=1, #stopping=#<Concurrent::AtomicBoolean:0x7cec6e11>, #buffer=[[\"index\", {:_id=>nil, :_index=>\"test\", :_type=>\"syslog\", :_routing=>nil}, #<LogStash::Event:0x43943d03 #metadata_accessors=#<LogStash::Util::Accessors:0x43e35cfd #store={}, #lut={}>, #cancelled=false, #data={\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, #metadata={}, #accessors=#<LogStash::Util::Accessors:0x6465de36 #store={\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, #lut={\"type\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"type\"], \"host\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"host\"], \"message\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"message\"], \"priority\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"priority\"], \"timestamp\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"timestamp\"], \"logsource\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"logsource\"], \"program\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"program\"], \"tags\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"tags\"], \"severity\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"severity\"], \"facility\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"facility\"], \"timestamp8601\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"timestamp8601\"], \"#timestamp\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"#timestamp\"], \"facility_label\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"facility_label\"], \"severity_label\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"severity_label\"], \"[type]\"=>[{\"message\"=>\"{messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}\\n\", \"tags\"=>[\"_jsonparsefailure\"], \"#version\"=>\"1\", \"#timestamp\"=>\"2015-12-17T10:17:51.000Z\", \"type\"=>\"syslog\", \"host\"=>\"127.0.0.1\", \"priority\"=>13, \"timestamp\"=>\"Dec 17 10:17:51\", \"logsource\"=>\"ip-172-31-27-253\", \"program\"=>\"ubuntu\", \"severity\"=>5, \"facility\"=>1, \"facility_label\"=>\"user-level\", \"severity_label\"=>\"Notice\"}, \"type\"]}>>]], #flush_thread=#<Thread:0x2155d7cc run>>", :interval=>1, :level=>:info, :file=>"logstash/outputs/elasticsearch/buffer.rb", :line=>"90", :method=>"interval_flush"}
Thanks,
Yuval
Since you have the json codec in your syslog input filter, you don't need to add an additional json filter. Your event is already in JSON format. What happens is that in your json filter you're trying to find a message field which doesn't exist.
You can either remove the json filter or remove the codec settings in your syslog input and it will work.
UPDATE
The error message you get is LogStash::Json::ParserError: Unexpected character ('<' (code 60)) which means that your syslog output is not valid JSON so you cannot use the codec => json parameter and you definitely need the json filter but it needs to parse the correct field (i.e. not message).
Your log lines look like
<13>Dec 17 10:17:51 ip-172-31-27-253 ubuntu: {messageType: cagw,uniqueID: 8e760b6b7c4e937ebb7063746dd945ecee782cac,sessionID: 6c43b719e0e457784a0a6d5dfef96a82}