Alerting

Mobile Access Server: "Cast to date failed" when checking for triggered Alerts

martin_mueller
SplunkTrust
SplunkTrust

I've successfully installed the Splunk Mobile Access Server in a local network, and can use an iPhone to access dashboards through WiFi. However, once I configured an Alert to trigger I see no Alert on the iPhone and this error message every five minutes (= check interval for Alerts) in /opt/mserver/server/logs/server.log:

2014-07-28T14:32:18.025+02:00 - error:  category=fail_to_check_triggered_alerts, error=CastError, message=Cast to date failed for value "2014-07-28 14:32:01 CEST" at path "triggerTime", stack=MongooseError: Cast to date failed for value "2014-07-28 14:32:01 CEST" at path "triggerTime"
  at SchemaDate.cast (/opt/mserver/server/node_modules/mongoose/lib/schema/date.js:107:9)
  at SchemaDate.SchemaType.applySetters (/opt/mserver/server/node_modules/mongoose/lib/schematype.js:526:17)
  at /opt/mserver/server/node_modules/mongoose/lib/document.js:544:18
  at model.Document.$__try (/opt/mserver/server/node_modules/mongoose/lib/document.js:757:8)
  at model.Document.set (/opt/mserver/server/node_modules/mongoose/lib/document.js:543:24)
  at model.Document.set (/opt/mserver/server/node_modules/mongoose/lib/document.js:454:18)
  at model.Document (/opt/mserver/server/node_modules/mongoose/lib/document.js:60:10)
  at model.Model (/opt/mserver/server/node_modules/mongoose/lib/model.js:43:12)
  at new model (/opt/mserver/server/node_modules/mongoose/lib/model.js:2502:11)
  at /opt/mserver/server/node_modules/mongoose/lib/model.js:1516:15, worker=7

That date string looks fine to me. Halp?

1 Solution

jzhong_splunk
Splunk Employee
Splunk Employee

sorry, it seems to be a bug. The Mobile Access Server cannot recognize the CEST timezone. It expects UTC.

We can fix it in next version. Before that, could you please change the timezone on your mobile server as a workaround. Thank you.

View solution in original post

jzhong_splunk
Splunk Employee
Splunk Employee

sorry, it seems to be a bug. The Mobile Access Server cannot recognize the CEST timezone. It expects UTC.

We can fix it in next version. Before that, could you please change the timezone on your mobile server as a workaround. Thank you.

martin_mueller
SplunkTrust
SplunkTrust

Alright, thanks. I'll try that some time.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...