How to maintain different security.json file for each client and where to store the security file to avoid putting credentials in code base

I am a newbie to Solr. We are having security.json file with 2 users having dev and admin roles with some accesses. We are creating separate docker images for separate clients but then the credentials in the security.json file are common to all of those clients. But I want to keep it different for different…

How can I create JSON format log when entering into Elasticsearch by logstash

i been told that, by using logstash pipeline i can re-create a log format(i.e JSON) when entering into elasticsearch. but not understanding how to do it . i.e the original log file is like this “message”: “21:33:42,004 DEBUG [LOG] (default-threads – 100) (1.2.3.4)(410)>[TIMESTAMP:Sat Sep 07 21:33:42 UTC 2019],[TEST:123456],[CMD:INFO],[STATUS:true],[INFO:true],[SIGNAL:false],[ABC:0],[DEF:0],[GHK:1111],[SERIAL:0006]” but when entering into Elastic search i…

Timestamp format getting convert when Dataframe.toJSON is done in spark scala

I have timestamp column in hive table that is read into Dataframe using the spark sql. Once I have the Dataframe I convert the dataframe to JSON string using the toJSON function in Spark. But the timestamp format is converted after applying toJSON to the dataframe Code and output as follows. scala> newDF.show(false) +————————–+————————–+ |current_ts…