I am trying to fetch email address from the logs. changesets.values is an array and it can be empty so taht is why i am using conditional statement. Code below gives error.
doc['changesets.values[0].toCommit.author.emailAddress'].empty ? "default" : doc['changesets.values[0].toCommit.author.emailAddress'].value