Skip to content

Commit

Permalink
Merge pull request elastic#188 from Robert-Weber/jsonLogBuilder2
Browse files Browse the repository at this point in the history
Json log builder2
  • Loading branch information
KjellKod committed Jun 13, 2014
2 parents ae01640 + 79e3f33 commit c13c972
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions protofiles/DpiMsgLRproto.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ message DpiMsgLRproto
repeated uint32 SrcIP6 = 42;
repeated uint32 DestIP6 = 43;
optional string RawData = 44;
optional uint64 TimeEnd = 45;
// REMEMBER TO UPDATE resources/DpiMsgLRproto.protoheader as well

repeated bytes framed_ipQ_PROTO_DIAMETER = 343; // QOSMOS:Q_PROTO_DIAMETER,Q_DIAMETER_FRAMED_IP
Expand Down
1 change: 1 addition & 0 deletions resources/DpiMsgLRproto.protoheader
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ message DpiMsgLRproto
repeated uint32 SrcIP6 = 42;
repeated uint32 DestIP6 = 43;
optional string RawData = 44;
optional uint64 TimeEnd = 45;
// REMEMBER TO UPDATE resources/DpiMsgLRproto.protoheader as well

5 changes: 4 additions & 1 deletion scripts/buildESTemplate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ sub ReadProtoFile {
print "\"DestIP6\" : { \"type\": \"string\", \"index\" : \"not_analyzed\", \"ignore_malformed\" : true },\n";
print "\"TimeStart\" : { \"format\": \"yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||yyyy-MM-dd'T'HH:mm:ss.SSSZZ\", \"type\": \"date\"},\n";
print "\"TimeUpdated\" : { \"format\": \"yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||yyyy-MM-dd'T'HH:mm:ss.SSSZZ\", \"type\": \"date\"},\n";
print "\"TimeTotal\" : { \"type\": \"long\", \"ignore_malformed\" : true },\n";
print "\"TimeTotal\" : { \"type\": \"long\", \"ignore_malformed\" : true},\n";
print "\"TimeEnd\" : { \"type\": \"long\", \"ignore_malformed\" : true},\n";
print "\"TimeStartRaw\" : { \"type\": \"long\", \"ignore_malformed\" : true, \"index\" : \"no\", \"store\" : \"no\" },\n";
print "\"TimeUpdatedRaw\" : { \"type\": \"long\", \"ignore_malformed\" : true, \"index\" : \"no\", \"store\" : \"no\" },\n";
print "\"TimeDelta\" : { \"type\": \"long\", \"ignore_malformed\" : true },\n";
print "\"Captured\" : { \"type\": \"string\", \"null_value\": \"false\"},\n";
print "\"Session\" : {\"type\": \"string\", \"index\" : \"not_analyzed\"},\n";
Expand Down

0 comments on commit c13c972

Please sign in to comment.