Skip to content

Instantly share code, notes, and snippets.

@veruyandi
Created November 13, 2019 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veruyandi/e8c4a7130cc3fcfc3d2a76881bf64fd3 to your computer and use it in GitHub Desktop.
Save veruyandi/e8c4a7130cc3fcfc3d2a76881bf64fd3 to your computer and use it in GitHub Desktop.
Dynatrace_xml_input parsing log of the Logstash
{
"from_millis" => "1573640520000",
"input" => {
"type" => "log"
},
"agent" => {
"hostname" => "somehost",
"id" => "8dcd2d3e-be27-4cc7-ae38-14a7a16874fb",
"type" => "filebeat",
"ephemeral_id" => "bf34f0dd-2e74-4292-a0a4-7a8fcb198593",
"version" => "7.4.2"
},
"@timestamp" => 2019-11-13T12:02:02.320Z,
"ecs" => {
"version" => "1.1.0"
},
"log" => {
"file" => {
"path" => "/home/xxx/input-filebeat/dynatrace_048_(SGT)_BANKA_SIGORTACILIĞI_20191113132200.out"
},
"offset" => 0,
"flags" => [
[0] "multiline"
]
},
"@metadata" => {
"type" => "_doc",
"beat" => "filebeat",
"version" => "7.4.2",
"theXML" => {
"name" => "048_(SGT)_BANKA_SIGORTACILIĞI",
"source" => {
"name" => "BANK",
"filters" => {
"filter" => "tf:CustomTimeframe?1573640520000:1573640580000",
"summary" => "from 13:22 to 13:23"
}
},
"data" => {
"chartdashlet" => [
[0] {
"name" => "Banka Sigortacılığı Operasyon Adet ",
"showabsolutevalues" => "false",
"description" => "",
"measures" => {
"structuretype" => "tree",
"measure" => [
[0] {
"drawingorder" => "4",
"aggregation" => "Count",
"unit" => "num",
"measurement" => [
[0] {
"sum" => "0.6068211495876312",
"timestamp" => "1573640520000",
"avg" => "0.20227371652921042",
"max" => "0.2539059519767761",
"count" => "3",
"min" => "0.1356492042541504"
},
[1] {
"sum" => "0.3934510424733162",
"timestamp" => "1573640540000",
"avg" => "0.1311503474911054",
"max" => "0.14222320914268494",
"count" => "3",
"min" => "0.12279105931520462"
},
[2] {
"sum" => "0.6131783351302147",
"timestamp" => "1573640550000",
"avg" => "0.15329458378255367",
"max" => "0.24541789293289185",
"count" => "4",
"min" => "0.10025250911712646"
},
[3] {
"sum" => "1235.2403798922896",
"timestamp" => "1573640560000",
"avg" => "176.46291141318423",
"max" => "1234.3441162109375",
"count" => "7",
"min" => "0.10929568856954575"
}
],
"measure" => "SGT_HesaplaSigortaPrimiVakifEmeklilik",
"thresholds" => "false",
"color" => "#0080ff"
},
[1] {
"drawingorder" => "5",
"aggregation" => "Count",
"unit" => "num",
"measurement" => {
"sum" => "0.12850795686244965",
"timestamp" => "1573640520000",
"avg" => "0.12850795686244965",
"max" => "0.12850795686244965",
"count" => "1",
"min" => "0.12850795686244965"
},
"measure" => "SGT_GetirAktifTeklifPoliceMusteriNoTarihIle",
"thresholds" => "false",
"color" => "#0000ff"
},
[2] {
"drawingorder" => "3",
"aggregation" => "Count",
"unit" => "num",
"measurement" => [
[0] {
"sum" => "0.4452671557664871",
"timestamp" => "1573640520000",
"avg" => "0.22263357788324356",
"max" => "0.25897571444511414",
"count" => "2",
"min" => "0.18629144132137299"
},
[1] {
"sum" => "4801.10693359375",
"timestamp" => "1573640530000",
"avg" => "4801.10693359375",
"max" => "4801.10693359375",
"count" => "1",
"min" => "4801.10693359375"
},
[2] {
"sum" => "0.2167513519525528",
"timestamp" => "1573640540000",
"avg" => "0.2167513519525528",
"max" => "0.2167513519525528",
"count" => "1",
"min" => "0.2167513519525528"
},
[3] {
"sum" => "0.20838549733161926",
"timestamp" => "1573640560000",
"avg" => "0.20838549733161926",
"max" => "0.20838549733161926",
"count" => "1",
"min" => "0.20838549733161926"
}
],
"measure" => "SGT_GetirSigortaBelge",
"thresholds" => "false",
"color" => "#80ffff"
},
[3] {
"drawingorder" => "1",
"aggregation" => "Count",
"unit" => "num",
"measurement" => [
[0] {
"sum" => "0.25897571444511414",
"timestamp" => "1573640520000",
"avg" => "0.25897571444511414",
"max" => "0.25897571444511414",
"count" => "1",
"min" => "0.25897571444511414"
},
[1] {
"sum" => "4801.40148332715",
"timestamp" => "1573640530000",
"avg" => "2400.700741663575",
"max" => "4801.10693359375",
"count" => "2",
"min" => "0.29454973340034485"
},
[2] {
"sum" => "0.2167513519525528",
"timestamp" => "1573640540000",
"avg" => "0.2167513519525528",
"max" => "0.2167513519525528",
"count" => "1",
"min" => "0.2167513519525528"
}
],
"measure" => "SGT_KrediliHayatBasvuruKaydet",
"thresholds" => "false",
"color" => "#00ff80"
},
[4] {
"drawingorder" => "2",
"aggregation" => "Count",
"unit" => "num",
"measurement" => [
[0] {
"sum" => "0.8657968640327454",
"timestamp" => "1573640520000",
"avg" => "0.21644921600818634",
"max" => "0.25897571444511414",
"count" => "4",
"min" => "0.1356492042541504"
},
[1] {
"sum" => "4801.40148332715",
"timestamp" => "1573640530000",
"avg" => "2400.700741663575",
"max" => "4801.10693359375",
"count" => "2",
"min" => "0.29454973340034485"
},
[2] {
"sum" => "0.610202394425869",
"timestamp" => "1573640540000",
"avg" => "0.15255059860646725",
"max" => "0.2167513519525528",
"count" => "4",
"min" => "0.12279105931520462"
},
[3] {
"sum" => "0.6131783351302147",
"timestamp" => "1573640550000",
"avg" => "0.15329458378255367",
"max" => "0.24541789293289185",
"count" => "4",
"min" => "0.10025250911712646"
},
[4] {
"sum" => "1235.2403798922896",
"timestamp" => "1573640560000",
"avg" => "176.46291141318423",
"max" => "1234.3441162109375",
"count" => "7",
"min" => "0.10929568856954575"
}
],
"measure" => "SGT_KrediliHayatTarifeBul",
"thresholds" => "false",
"color" => "#ff8080"
}
]
}
},
[1] {
"name" => "Banka Sigortacılığı Operasyon Süre",
"showabsolutevalues" => "false",
"description" => "",
"measures" => {
"structuretype" => "tree",
"measure" => [
[0] {
"drawingorder" => "5",
"aggregation" => "Average",
"unit" => "ms",
"measurement" => {
"sum" => "0.12850795686244965",
"timestamp" => "1573640520000",
"avg" => "0.12850795686244965",
"max" => "0.12850795686244965",
"count" => "1",
"min" => "0.12850795686244965"
},
"measure" => "SGT_GetirAktifTeklifPoliceMusteriNoTarihIle",
"thresholds" => "false",
"color" => "#0000ff"
},
[1] {
"drawingorder" => "1",
"aggregation" => "Average",
"unit" => "ms",
"measurement" => [
[0] {
"sum" => "0.4452671557664871",
"timestamp" => "1573640520000",
"avg" => "0.22263357788324356",
"max" => "0.25897571444511414",
"count" => "2",
"min" => "0.18629144132137299"
},
[1] {
"sum" => "4801.10693359375",
"timestamp" => "1573640530000",
"avg" => "4801.10693359375",
"max" => "4801.10693359375",
"count" => "1",
"min" => "4801.10693359375"
},
[2] {
"sum" => "0.2167513519525528",
"timestamp" => "1573640540000",
"avg" => "0.2167513519525528",
"max" => "0.2167513519525528",
"count" => "1",
"min" => "0.2167513519525528"
},
[3] {
"sum" => "0.20838549733161926",
"timestamp" => "1573640560000",
"avg" => "0.20838549733161926",
"max" => "0.20838549733161926",
"count" => "1",
"min" => "0.20838549733161926"
}
],
"measure" => "SGT_GetirSigortaBelge",
"thresholds" => "false",
"color" => "#80ffff"
},
[2] {
"drawingorder" => "2",
"aggregation" => "Average",
"unit" => "ms",
"measurement" => [
[0] {
"sum" => "0.25897571444511414",
"timestamp" => "1573640520000",
"avg" => "0.25897571444511414",
"max" => "0.25897571444511414",
"count" => "1",
"min" => "0.25897571444511414"
},
[1] {
"sum" => "4801.40148332715",
"timestamp" => "1573640530000",
"avg" => "2400.700741663575",
"max" => "4801.10693359375",
"count" => "2",
"min" => "0.29454973340034485"
},
[2] {
"sum" => "0.2167513519525528",
"timestamp" => "1573640540000",
"avg" => "0.2167513519525528",
"max" => "0.2167513519525528",
"count" => "1",
"min" => "0.2167513519525528"
}
],
"measure" => "SGT_KrediliHayatBasvuruKaydet",
"thresholds" => "false",
"color" => "#00ff80"
},
[3] {
"drawingorder" => "4",
"aggregation" => "Average",
"unit" => "ms",
"measurement" => [
[0] {
"sum" => "0.6068211495876312",
"timestamp" => "1573640520000",
"avg" => "0.20227371652921042",
"max" => "0.2539059519767761",
"count" => "3",
"min" => "0.1356492042541504"
},
[1] {
"sum" => "0.3934510424733162",
"timestamp" => "1573640540000",
"avg" => "0.1311503474911054",
"max" => "0.14222320914268494",
"count" => "3",
"min" => "0.12279105931520462"
},
[2] {
"sum" => "0.6131783351302147",
"timestamp" => "1573640550000",
"avg" => "0.15329458378255367",
"max" => "0.24541789293289185",
"count" => "4",
"min" => "0.10025250911712646"
},
[3] {
"sum" => "1235.2403798922896",
"timestamp" => "1573640560000",
"avg" => "176.46291141318423",
"max" => "1234.3441162109375",
"count" => "7",
"min" => "0.10929568856954575"
}
],
"measure" => "SGT_HesaplaSigortaPrimiVakifEmeklilik",
"thresholds" => "false",
"color" => "#0080ff"
},
[4] {
"drawingorder" => "3",
"aggregation" => "Average",
"unit" => "ms",
"measurement" => [
[0] {
"sum" => "0.8657968640327454",
"timestamp" => "1573640520000",
"avg" => "0.21644921600818634",
"max" => "0.25897571444511414",
"count" => "4",
"min" => "0.1356492042541504"
},
[1] {
"sum" => "4801.40148332715",
"timestamp" => "1573640530000",
"avg" => "2400.700741663575",
"max" => "4801.10693359375",
"count" => "2",
"min" => "0.29454973340034485"
},
[2] {
"sum" => "0.610202394425869",
"timestamp" => "1573640540000",
"avg" => "0.15255059860646725",
"max" => "0.2167513519525528",
"count" => "4",
"min" => "0.12279105931520462"
},
[3] {
"sum" => "0.6131783351302147",
"timestamp" => "1573640550000",
"avg" => "0.15329458378255367",
"max" => "0.24541789293289185",
"count" => "4",
"min" => "0.10025250911712646"
},
[4] {
"sum" => "1235.2403798922896",
"timestamp" => "1573640560000",
"avg" => "176.46291141318423",
"max" => "1234.3441162109375",
"count" => "7",
"min" => "0.10929568856954575"
}
],
"measure" => "SGT_KrediliHayatTarifeBul",
"thresholds" => "false",
"color" => "#ff8080"
}
]
}
}
]
},
"version" => "7.2.10.1019",
"description" => "",
"reportheader" => {
"reportdetails" => {
"user" => "someuser"
}
},
"reportdate" => "2019-11-13T13:23:16.618+03:00"
},
"ip_address" => "127.0.0.1",
"report_filter_text" => "tf:CustomTimeframe?1573640520000:1573640580000"
},
"@version" => "1",
"host" => {
"hostname" => "somehost",
"os" => {
"kernel" => "4.1.12-124.26.7.el7uek.x86_64",
"name" => "Oracle Linux Server",
"family" => "",
"version" => "7.6",
"platform" => "ol"
},
"containerized" => false,
"name" => "somehost",
"id" => "f7f28ca297af483e91fbe54ba6183d11",
"architecture" => "x86_64"
},
"record_timestamp" => 2019-11-13T10:22:00.000Z,
"tags" => [
[0] "beats_input_codec_plain_applied",
[1] "_rubyexception"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment