Hello,
I am ingesting the following document into Elasticsearch via Logstash:
[xxxx@yyyy ~]# curl -k http://my_es_hostname:9200/cdp-zos-syslog-console-plex75-20231005/_search?pretty
{
"took" : 564,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 309,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "cdp-zos-syslog-console-plex75-20231005",
"_type" : "_doc",
"_id" : "Yu9p_ooBSa48C3jEeosr",
"_score" : 1.0,
"_source" : {
"ROUTECODE" : "00000000000000000000000000000000",
"FLAGS" : "80",
"sourceType" : "zOS-SYSLOG-Console",
"seq" : {
"c" : "0",
"w" : "0"
},
"@timestamp" : "2023-10-05T05:57:15.840Z",
"TIMESTAMP" : "23278 01.57.15.840 -0400",
"path" : "SYSLOG",
"ASID" : "0012",
"systemName" : "TVT5076",
"message" : "NC,0012,23278 01.57.15.840 -0400,TVT5076 ,TSU01399,MARINUC ,00000000000000000000000000000000,00000290,MARINUC ,80,\" D A,L\"\n",
"rcd" : "NC",
"sourceName" : "TVT5076-SYSLOG",
"inputsequence" : "20231005055718722:000000",
"DESCRIPTOR" : "00000290",
"timeZone" : "-0400",
"sysplexName" : "PLEX75",
"JOBNUM" : "TSU01399",
"CONSOLE" : "MARINUC ",
"host" : "TVT5076.svl.ibm.com",
"TEXT" : " D A,L",
"SMFID" : "TVT5076 ",
"@version" : "1",
"port" : 1062,
"JOBNAME" : "MARINUC "
}
},
The goal is to change the ASID fied (that is also part of the index ) from the type text into integer .
Can you kindly provide te operational steps to do this?
My ELK and specifically Elasicsearch background is not strong ...
Thanks in advance for any help
Francesco