17 April 2021

Enable nested virtualization on ESXi

 For ESXi 5.1

Kaedah 1:




Kaedah 2: 
  1. Cleanly shutdown your VIRL virtual machine
  2. Open the .vmx file with a text editor like Notepad++ or Text Wrangler
  3. Ensure this line is present and value set to TRUE
    • vhv.enable = "TRUE"


ref: https://learningnetwork.cisco.com/s/article/t-shoot-kvm-ok-your-cpu-does-not-support-kvm-extensions

07 April 2021

Cara nak update data dalam Elastic

 Guna Kibana Dev's Tool


1- Create documents dalam elasticsearch


POST /coba-alfa/_doc/
{
    "id": 124,
    "name": "malware",
    "age": 26,
    "maklumat": {
        "tangan": 2,
        "warna": "Coklat",
        "tinggi": 170,
        "kepantasan": "rendah"
    }
}



2- update maklumat.kepantasan menjadi tinggi , hanya utk semua yg ada 2 maklumat.tangan

POST coba-*/_update_by_query
{
    "script" : {
      "source": "ctx._source.maklumat.kepantasan='tinggi';",
      "lang": "painless"  
    },
    "query": {
        "term" : {
            "maklumat.tangan": 2
        }
    }
}





ref: https://stackoverflow.com/questions/19563215/update-only-specific-field-value-in-elasticsearch