Tuesday, November 29, 2022

 

Debugging java batch program execution with SSL call's

 In JAVA parameters you should use:

java -jar
-Djavax.net.ssl.trustStore=...path_to.../jre/lib/security/cacerts
-Djavax.net.ssl.trustStorePassword=...pwd.of.cacerts...
-Djavax.net.ssl.trustStoreType=jks
-Djavax.net.debug=ssl:handshake:verbose
-Djdk.tls.client.protocols=TLSv1
-Dhttps.protocols=TLSv1  YOUR_PROGRAM.jar


To populate your cacerts with your certificates use:

keytool.exe -importcert -keystore cacerts -storepass ...pwd.of.cacerts... -file my_ca_cert.crt -alias "my_ca_cert"





 

Converting custom log timestamt or date time format into @timestamp - elastic, logstasch

 To convert custom log timestamp into @timestamp you should do next:

variable timestamp has value like and you prepare it or read it with grok.

21-12-2022 14:33:12,001

And this value is transformed into cy, cm, .... and on the end created as date into variable timestampd. Be careful about milliseconds and millisecond delimiter. If you have . you should put . into formater.

Read more »

This page is powered by Blogger. Isn't yours?