I have a Windows Event logs which are in an ElasticSearch cluster. I am using Pandas to query ES vis the API. The output for the datetime field is initially an "object". Using pandas.to_datetime I have successfully converted it to a Dtype of "datetime64[ns, UTC]".
However the data in the field in an undesired format of, yyyy-mm-dd hh:mm:ss+00:00.
I don't want the "+00:00" part. I have tried pandas.to_datetime with format to no avail. Here is how I am converting the object.
services["datetime"]=pd.to_datetime(services["datetime"])
Here is the field output, 2020-08-31 11:02:03+00:00 Here is the desired output, 08/31/2020 11:02:03
Not sure how to get there.