code: def __convert_booleans(self, eitem):
          
  
          for field in eitem.keys():
              if isinstance(eitem[field], bool):
                  if eitem[field]:
                      eitem[field] = 1
                  else:
                      eitem[field] = 0
          return eitem
docs: Convert True/False to 1/0 for better kibana processing