Why is the root logger collecting all log types regardless the configuration?

I am having problem that even though I specify the level to ERROR in the root tag, the specified appender logs all levels (debug, info, warn) to the file regardless the settings. I am not a Log4j...

Java Time Zone When Parsing DateFormat

I had code that parses date as follows: String ALT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat sdf = new SimpleDateFormat( ALT_DATE_TIME_FORMAT); Date date =...

How do I get an ISO 8601 date on iOS?

It's easy enough to get the ISO 8601 date string (for example, 2004-02-12T15:19:21+00:00) in PHP via date('c'), but how does one get it in Objective-C (iPhone)? Is there a similarly short way to...

log4j2 RollingFile Appender requires date pattern

I have defined a RollingFile Appender in log4j2 <RollingFile name="Locserver" append="true" fileName="locserver.log" filePattern="locserver-%i.log"> <PatternLayout> <pattern>%d{ISO8601} [%t] %p...

Get ISO 8601 using Intl.DateTimeFormat

I want to use Intl.DateTimeFormat to format a Date, and in the examples it says // when requesting a language that may not be supported, such as // Balinese, include a fallback language, in this...

Why can't I map @timestamp to _timestamp in Elastic Search indexing Template?

I am using Logstash with Elasticsearch and as a result, the @timestamp field is a mandatory document field. The value of the @timestamp field is always of the ISO8601 format. Some of the...

ISO-8601 String to Date in Google Sheets cell

I have a bunch of ISO-8601 formatted strings in a column of my sheet. How can I get google sheets to treat them as Dates so I can do math on them (difference in minutes between two cells, for...

Ruby check if datetime is a iso8601 and saving

I need to check if a DateTime is in a valid ISO8601 format. Like: #iso8601? I checked if ruby has a specific method but I haven't found any. Currently I'm using date.iso8601 == date to check...

How to output date in javascript in ISO 8601 without milliseconds and with Z

Here is a standard way to serialise date as ISO 8601 string in JavaScript: var now = new Date(); console.log( now.toISOString() ); // outputs '2015-12-02T21:45:22.279Z' I need just the same...

Unix timestamp to iso 8601 time format

When I convert unix time 1463288494 to isoformat i get 2016-05-14T22:01:34. How can I get the output including the -07:00. In this format 2016-05-14T22:01:34-07:00 from datetime import...

Getting MAC address from Ansible facts in role

I'm trying to get the MAC address for the current host so that I can use the value in a task. Even after reading the docs I cant seem to wrap my head around how to do this. I've been trying to...

Converting list of date-time strings to list of DateTime values

I'm brand-new to C#. Using SharpDevelop program. I can convert a ISO 8601 DateTime value within a 'for' loop. I am sure that the ToList method of 'records' would allow me to convert all the...

How to convert a date string with optional fractional seconds using Codable in Swift4

I am replacing my old JSON parsing code with Swift's Codable and am running into a bit of a snag. I guess it isn't as much a Codable question as it is a DateFormatter question. Start with a...

Java 8 date time types serialized as object with Spring Boot

I have an entity with fields of Java 8 date time types. The issue is that these fields are serialized as object. I added the jackson-datatype-jsr310 dependency, so Spring Boot 1.5.7 would auto...

Getting missmatch in datetime format using jms serializer and ISO8601

I am getting this message: Invalid datetime "2017-11-07T19:46:57.118Z", expected format Y-m-d\\TH:i:sP. When using JMS Serializer and the config: jms_serializer: handlers: datetime: ...

Python logger output dates in IS8601 format

Is there a way to make the Python logger output dates in ISO8601 format? My logger is set up like this... logging.basicConfig( format="%(message)s - %(asctime)s) From the Python docs...

How to access AWS API gateway by authorization in swift 3?

When I access AWS gateway by calculating AWS signature by Alamofire. It responds error message "*The request signature we calculated does not match the signature you provided. Check your AWS...

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main...

How to dynamically name index in Elasticsearch Date Name Index Processor?

I need to use Elasticseach Date Name Index Processor to make every log goes to the right index. That's easy. My problem is that I need to name indices dynamically by using a field content but I...

Carbon parse Iso 8601 string to UTC date and record it to db

I have the following Iso8601 date-time string 2018-03-12T10:34:15-0200 and after I parse it Carbon::parse("2018-03-21T10:34:15-0200", 'UTC') and save it to mysql db datetime column I have...

Mailchimp date validate problem - ISO8601 rejected

I am trying to use Mailchimp.com's API 3.0 to add people from a PHP web server, but my datetime values for "timestamp_signup"and "timestamp_opt" are being rejected on insert subscriber. According...

AWS Glue: Crawler does not recognize Timestamp columns in CSV format

When running the AWS Glue crawler it does not recognize timestamp columns. I have correctly formatted ISO8601 timestamps in my CSV file. First I expected Glue to automatically classify these as...

MongoDB: "Unrecognized option: systemLog"

guys. I have a problem with the configuration files of MongoDB. It seem that use the YAML syntax. I follow the instruction on the official website. I read something about YAML and I tried to...

How to get current date and time in ISO 8601 format in kotlin?

I am trying to get the current date and time in ISO 8601 format. My code below returns the date 14 days later and incorrect time. I need the correct format and current date for an api request. val...

How to parse this datetime in Swift

I'm trying to parse this DateTime, but unable to detect the formatting and got no luck with parsing. It looks like the following: 20190507T000000.000 I tried every format I was able to imagine,...

Convert influxdb time format to ISO8601 format using PHP

When using the influxdb PHP client i see this time format: 2020-02-06T17:26:38.277740846Z PHP DateTime does not seem to understand the format: $date =...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

Format Luxon date to ISO8601 basic format

I'm using Luxon to format a DateTime, and I need to it to be the following format, including the 'T' and 'Z' characters: 20150830T123600Z I've tried to format the DateTime using: let dateTimeNow...

Could Elasticsearch hot reload log4j2.properties?

I have a production elasticsearch used log4j that is vulnerable ./lib/log4j-api-2.11.1.jar ./lib/log4j-core-2.11.1.jar because it's a production environment, I do not want to reboot it, I saw...

Apache Log4j Security Vulnerabilities - 2.17.0 jar not load Lookup values into log4j2.xml

As per Apache Log4j Security Vulnerabilities guideline i have updated 2.17.0 jar in my application. Post upgrade Log files not getting generated. Spring version : 5.3.13 Log4j version :...