Transform DSA and storage data

The CICS Storage dashboards requires a combination of DSA and storage data. In order to achieve this we need to add and run a transform.

Manage transformed data

The transformed data should be managed similar to our CICS Performance Analyzer data. In order to achieve this, we need to perform the following steps.

  1. Create an index lifecycle management policy by cloning the cicspa-ilm-policy. In kibana, select Management ▶ Stack Management ▶ Data: Index Lifecycle Policies ▶ cicspa-ilm-policy ▶ Save as new policy ▶ enter transform-cicspa-dsa-storage-ilm-policy as policy name ▶ Save as new policy.

  2. Create an index template for the transformed data.

Here is a starter index template for the transformed data that use an alias instead of a data stream for rollover:

PUT _index_template/transform-cicspa-dsa-storage
{
  "index_patterns": ["transform-cicspa-dsa-storage-*"],                 
  "template": {
    "settings": {
      "number_of_replicas": 0,
      "index.lifecycle.name": "transform-cicspa-dsa-storage-ilm-policy",      
      "index.lifecycle.rollover_alias": "transform-cicspa-dsa-storage"    
    },
    "mappings": {
      "dynamic_templates": [ {
        "strings": {
          "match_mapping_type": "string",
          "mapping": {
            "type": "keyword"
          }
        }
      } ]
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

TIP

You can paste API requests into the Kibana console. In Kibana, select Management ▶ Dev Tools ▶ Console.

  1. Create the initial index for the transform-cicspa-dsa-storage alias:
PUT transform-cicspa-dsa-storage-000001
{
  "aliases": {
    "transform-cicspa-dsa-storage": {
      "is_write_index": true
    }
  }
}
1
2
3
4
5
6
7
8

Add and run the transform

Here is a starter transform:

PUT _transform/transform-cicspa-dsa-storage
{
  "frequency": "1m",
  "sync": {
    "time": {
      "field": "Collection Time",
      "delay": "60s"
    }
  },
  "source": {
    "index": [
      "cicspa_storage*",
      "cicspa_dsa*"
    ],
    "query": {
      "match_all": {}
    }
  },
  "dest": {
    "index": "transform-cicspa-dsa-storage"
  },
  "pivot": {
    "group_by": {
      "APPLID": {
        "terms": {
          "field": "APPLID"
        }
      },
      "Collection Time": {
        "terms": {
          "field": "Collection Time"
        }
      },
      "Image": {
        "terms": {
          "field": "Image"
        }
      }
    },
    "aggregations": {
            "Current EDSA Limit": {
              "max": {
                "field": "Current EDSA Limit"
              }
            },
            "Current DSA Limit": {
              "max": {
                "field": "Current DSA Limit"
              }
            },
      "CDSA": {
        "filter": {
          "term": {
            "DSA Name": "CDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "RDSA": {
        "filter": {
          "term": {
            "DSA Name": "RDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "SDSA": {
        "filter": {
          "term": {
            "DSA Name": "SDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "UDSA": {
        "filter": {
          "term": {
            "DSA Name": "UDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "ECDSA": {
        "filter": {
          "term": {
            "DSA Name": "ECDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "ERDSA": {
        "filter": {
          "term": {
            "DSA Name": "ERDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "ESDSA": {
        "filter": {
          "term": {
            "DSA Name": "ESDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "EUDSA": {
        "filter": {
          "term": {
            "DSA Name": "EUDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      },
      "ETDSA": {
        "filter": {
          "term": {
            "DSA Name": "ETDSA"
          }
        },
        "aggregations": {
          "DSASize": {
            "max": {
              "field": "Peak DSA Size"
            }
          },
          "LowestFreeStorage": {
            "max": {
              "field": "Lowest Free Storage"
            }
          }
        }
      }
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224

In Kibana, select Management ▶ Stack Management ▶ Transforms ▶ start transform-cicspa-dsa-storage.

Last Updated:
Contributors: Daniel Lalwet, Viaceslavas Michalkevicius