How do I pass the index field from the source to the S3 destination file name?
Best Answer
-
https://docs.cribl.io/stream/usecase-s3-better-practices
https://docs.cribl.io/stream/destinations-s3
the partition expression is where you want to look
`${C.Time.strftime(_time ? _time : Date.now() / 1000, '%Y/%m/%d')}/${index ? index : 'no_index'}/${host ? host : 'no_host'}/${sourcetype ? sourcetype : 'no_sourcetype'}`
Hit the popout to edit while seeing a preview of what it will look like:
0
Answers
-
https://docs.cribl.io/stream/usecase-s3-better-practices
https://docs.cribl.io/stream/destinations-s3
the partition expression is where you want to look
`${C.Time.strftime(_time ? _time : Date.now() / 1000, '%Y/%m/%d')}/${index ? index : 'no_index'}/${host ? host : 'no_host'}/${sourcetype ? sourcetype : 'no_sourcetype'}`
Hit the popout to edit while seeing a preview of what it will look like:
0