コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
strings.base64_decode
strings.base64_decode(encodedString)
説明
エンコードされた文字列の Base64 デコードされたバージョンを含む文字列を返します。
この関数は、Base64 でエンコードされた 1 つの文字列を引数として受け取ります。encodedString
が Base64 でエンコードされた有効な文字列でない場合、この関数は encodedString
を変更せずに返します。
パラメータのデータ型
STRING
戻り値の型
STRING
コードサンプル
例 1
"test" = strings.base64_decode($e.principal.domain.name)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-29 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-29 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003estrings.base64_decode\u003c/code\u003e function decodes a base64 encoded string.\u003c/p\u003e\n"],["\u003cp\u003eIt is supported in Rules and Search within Chronicle.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts a single \u003ccode\u003eSTRING\u003c/code\u003e argument that represents the base64 encoded string.\u003c/p\u003e\n"],["\u003cp\u003eIf the provided string is not a valid base64 string, the function returns the original string.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a \u003ccode\u003eSTRING\u003c/code\u003e that is the decoded version of the argument provided.\u003c/p\u003e\n"]]],[],null,["### strings.base64_decode\n\nSupported in: \n[Rules](/chronicle/docs/detection/default-rules) [Search](/chronicle/docs/investigation/udm-search) \n\n strings.base64_decode(encodedString)\n\n#### Description\n\nReturns a string containing the base64 decoded version of the encoded string.\n\nThis function takes one base64 encoded string as an argument. If `encodedString`\nis not a valid base64 encoded string, the function returns `encodedString` unchanged.\n\n#### Param data types\n\n`STRING`\n\n#### Return type\n\n`STRING`\n\n#### Code samples\n\n##### Example 1\n\n \"test\" = strings.base64_decode($e.principal.domain.name)"]]