Hi @gcusello @to4kawa the above solution didnt worked for me, am using splunk7.0.1 and i just started learning splunk I need to filter the data based on printed timestamp where i need to find the difference of days with indexed timestamp of Xml file and display the columns as 0 if it falls on same day else 1 if it days difference is more than or equal to 1 so i provided the timestramp condtion as if(round(((indextime-SideA-printedtimestamp)/86400),0)=0),1,0) i need the output like this RollID customer-job-id start-range-Side-A-printed-timestamp start-range-Side-B-printed-timestamp end-range-Side-A-printed-timestamp end-range-Side-B-printed-timestamp RollId-1 Customer-1 based on FilterCondition it should be 1 or 0 based on FilterCondition it should be 1 or 0 based on FilterCondition it should be 1 or 0 based on FilterCondition it should be 1 or 0 RollId-1 Customer-2 0 1 1 1 the difference of epoc dates shows me blank even for converted timestamp eval diff=(printedtimestrampB-printedtimestrampA) something am doing in wrong way i tried the below query to find the result. (index=*) "jobs.job.job-manifest.start-range.side-a.printed-timestamp"="*" "jobs.job.job-manifest.start-range.side-b.printed-timestamp"="*" | rename jobs.job.job-manifest.start-range.side-a.printed-timestamp as "printedtimestrampA" ,jobs.job.job-manifest.start-range.side-b.printed-timestamp As "printedtimestrampB" | eval printedA_epoch=strptime(printedtimestrampA,"%Y-%m-%dT%H:%M:%S.%Q"),printedB_epoch=strptime(printedtimestrampB,"%Y-%m-%dT%H:%M:%S.%Q") | eval indextime =_indextime | eval diffA=indextime-printedA_epoch, diffB=indextime-printedB_epoch | eval daysA= round((diffA/86400),0) , daysB= round((diffB/86400),0) |eval diff=(printedtimestrampB-printedtimestrampA) | table host as customer,printedA_epoch,printedB_epoch,indextime,diffA,diffB,daysA,daysB,diff below is the screen shot for reference, even i tried using rex but could get proper result.
... View more