File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/com/splunk/hecclient Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2525 <dependency >
2626 <groupId >com.fasterxml.jackson.core</groupId >
2727 <artifactId >jackson-core</artifactId >
28- <version >2.10.5 </version >
28+ <version >2.12.6 </version >
2929 <scope >compile</scope >
3030 </dependency >
3131 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
3232 <dependency >
3333 <groupId >com.fasterxml.jackson.core</groupId >
3434 <artifactId >jackson-databind</artifactId >
35- <version >2.10.5 .1</version >
35+ <version >2.12.6 .1</version >
3636 <scope >compile</scope >
3737 </dependency >
3838 <dependency >
Original file line number Diff line number Diff line change 2323import org .slf4j .*;
2424
2525import java .io .*;
26+ import java .text .SimpleDateFormat ;
2627import java .util .Map ;
28+ import java .util .TimeZone ;
2729
2830/**
2931 * Event is an abstract class that represents a bare bones implementation of a Splunk Event. Every event that arrives
@@ -48,7 +50,9 @@ public abstract class Event {
4850 static {
4951 jsonMapper = new ObjectMapper ();
5052 jsonMapper .registerModule (new com .splunk .kafka .connect .JacksonStructModule ());
51- jsonMapper .setDateFormat (StdDateFormat .instance );
53+ SimpleDateFormat df = new SimpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss.SSSZ" );
54+ df .setTimeZone (TimeZone .getTimeZone ("UTC" ));
55+ jsonMapper .setDateFormat (df );
5256 }
5357
5458 protected static final Logger log = LoggerFactory .getLogger (Event .class );
You can’t perform that action at this time.
0 commit comments