Hello,
Is it possible to use the XOR function in packetbeat processors or in Advanced / JSON input on field values?
My goal is to do XOR on field values retrieved by packetbeat.
Hello
I find
POST /_scripts/painless/_execute
{
"script": {
"lang": "painless",
"source": """
def hr1 = params.hexa.substring(8,16);
def hm1 = params.hexa.substring(24,32);
def r1 = Long.valueOf(hr1, 16);
def m1 = Long.valueOf(hm1, 16);
def v1 = r1 ^ m1;
hr1+'='+r1+' '+hm1+'='+m1+' '+v1
""",
"params": {
"hexa": "60f574e53d2d1b91740d129b86789ec2cf5897c8d1cb6bd"
}
}
}
Result
{
"result" : "3d2d1b91=1026366353 86789ec2=2256051906 3142944083"
}
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.