Gets the day of the month of a timestamp field.

ParameterTypeRequiredDefaultDescription
asstringoptional_dayOfMonth The name of the output field.
field[a]stringoptional@timestamp The name of the input field.
timezonestringoptional  The time offset to use e.g., -01:00. If not specified, the query's offset will be used.
timezoneFieldstringoptional  The name of the field containing the timezone to use, if not specified the query's timezone will be used. This is ignored if the timezone parameter is passed as well. If this is not defined the timezone offset of the query will be used.

[a] The argument name field can be omitted.

The parameter name for field can be omitted; the following forms are equivalent:

logscale
time:dayOfMonth("@timestamp")

and:

logscale
time:dayOfMonth(field="@timestamp")