userData.update({_id: 'PBYsgwCsTpdf7f9wp'},{$set: {chefAvailabilityDinner: [
        {
            title  : 'event1',
            start  : '2014-10-15'
        },
        {
            title  : 'event2',
            start  : '2014-10-11',
            end    : '2014-10-12'
        },
        {
            title  : 'event3',
            start  : '2014-10-17T12:30:00'

        }
    ]}},{validate:false},function (error, result) {console.log ('error is :', error); console.log ('result is :', result);})


    userData.update({_id: 'PBYsgwCsTpdf7f9wp'},{$set: {chefAvailabilityDinner: [
            {
                title  : 'event1',
                start  : '2014-11-15'
            },
            {
                title  : 'event2',
                start  : '2014-11-11',
                end    : '2014-11-12'
            },
            {
                title  : 'event3',
                start  : '2014-11-17T12:30:00'

            }
        ]}},{validate:false},function (error, result) {console.log ('error is :', error); console.log ('result is :', result);})

    userData.update({_id: 'PBYsgwCsTpdf7f9wp'},{$set: {chefAvailabilityDinner.$.color: 'yellow'}},{validate:false},function (error, result) {console.log ('error is :', error); console.log ('result is :', result);})

    db.userdata.update({_id: 'PBYsgwCsTpdf7f9wp'},{$addToSet: {'chefAvailabilityDinner': {'title': 'available','start':'asdf','end':'asdf'}}})

    $ModLoad imfile
    $InputFilePollInterval 10
    $PrivDropToGroup adm
    $WorkDirectory /var/spool/rsyslog
    #Input for FILE1
    $InputFileName /FILE1
    $InputFileTag APPNAME1
    $InputFileStateFile stat-APPNAME1 #this must be unique for each file being polled
    $InputFileSeverity info
    $InputFilePersistStateInterval 20000
    $InputRunFileMonitor # Add a tag for file events
    $template LogglyFormatFile,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %hostname% %app-name% %procid% %msgid% [818458cc-dfd8-4146-acd3-dd77d558dd01@41058 tag=\"file\"] %msg%\n"
    # Send to Loggly then discard if $programname == 'APPNAME1' then @@logs-01.loggly.com:514;LogglyFormatFile
    if $programname == 'APPNAME1' then ~
