In ES2.2, the output source is 1 single line/string:
"hits" : [ {
"_index" : "ise",
"_type" : "contextrepo",
"_id" : "da:d8:54:41:ee:23",
"_score" : 1.0,
"_source":{"AuthenticationMethod":"Wired","AuthorizationPolicyMatchedRule":"Default","SelectedAuthorizationProfiles":"Dot1X","AuthenticationIdentityStore":"InternalUser","Description":"description7499628","Email":"emailid153048@rediff.com","EndPointPolicy":"XeroxWorkCentre7556","FirstName":"fname9494","IdentityGroup":"Engineering","ip":"250.64.136.241","ipv6":"9feb:7ec8:3e6c:2a97::9","LastName":"lname75739","LogicalProfile":"GamingDevices","MACAddress":"da:d8:54:41:ee:23","MDMCompliant":"noncompliant","MDMDiskEncrypted":"true","MDMJailBroken":"false","MDMPinLockSet":"true","mdmRegistrationStatus":"false","Location":"locations#alllocations#ntn#ntn10","OUI":"da:d8:54","PostureStatus":"unknown","status":"Connected","PortalUser":"portaluser56880","userName":"user103124","NetworkDeviceName":"ntn10NAD456908","StaticAssignment":"Yes","StaticGroupAssignment":"Yes","FailureReason":"Reason Code: 15455","User-Fetch-Department":"ABC-3","User-Fetch-Telephone":"19","User-Fetch-Job-Title":"ENG-3","User-Fetch-Organizational-Unit":"SAMPG-8","User-Fetch-CountryName":"USA-12","User-Fetch-LocalityName":"LOC-4","User-Fetch-StateOrProvinceName":"CA-2","User-Fetch-StreetAddress":"STR-8","UserType":"Guest-Sponsor","PortalUserGuestSponsor":"Desk Admin 1","PortalUserGuestType":"Contractor","PhoneID":"UDID3697091"}}
But in 5.2, the output is multiple line:
{
"_index" : "ise",
"_type" : "contextrepo",
"_id" : "f5:6e:ca:11:ed:f5",
"_score" : 1.0,
"_source" : {
"AuthenticationMethod" : "Wireless",
"AuthorizationPolicyMatchedRule" : "Default",
"SelectedAuthorizationProfiles" : "Dot1X",
"AuthenticationIdentityStore" : "Internal User",
"Description" : "description9496862",
"Email" : "emailid104970@rediff.com",
"EndPointPolicy" : "Cisco-AIR-AP-1250",
"FirstName" : "fname19454",
"IdentityGroup" : "HR",
"ip" : "43.20.3.32",
"ipv6" : "44ae:1430:27a5:10bc::9",
"LastName" : "lname97497",
"LogicalProfile" : "Medical Devices",
"MACAddress" : "f5:6e:ca:11:ed:f5",
"MDMDiskEncrypted" : "true",
"MDMJailBroken" : "true",
"MDMPinLockSet" : "true",
"mdmRegistrationStatus" : "false",
"Location" : "locations#all locations#bxb#bxb2",
"OUI" : "f5:6e:ca",
"PostureStatus" : "non-compliant",
"status" : "Connected",
How to make 5.5.2 output same as 2.4 data to be 1 string?
the command I used:
curl -k -XGET "http://localhost:9200/ise/tableindex/_search?pretty"