Blue Sky LOG
Blue Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
01-blue-sky.log981d51a3269c3b7eecc126dc91cafbf5c6ec75c9dd4ae2a550946c8324f3d9acData
アプリケーションやサーバーのイベント記録に使われるテキストログ。固定の標準シグネチャはありません。
32 30 32 36 2D 2026-SIGNATURE = bytes.fromhex("323032362d")
OFFSET = 0
def is_log(path: str) -> bool:
with open(path, "rb") as f:
f.seek(OFFSET)
head = f.read(len(SIGNATURE))
return head == SIGNATUREconst SIGNATURE = [0x32, 0x30, 0x32, 0x36, 0x2d];
const OFFSET = 0;
// bytes: a Uint8Array / Buffer holding the start of the file
export function isLog(bytes) {
return SIGNATURE.every((byte, i) => bytes[OFFSET + i] === byte);
}package fileid
import "bytes"
var islogSignature = []byte{0x32, 0x30, 0x32, 0x36, 0x2d}
const islogOffset = 0
func IsLog(b []byte) bool {
end := islogOffset + len(islogSignature)
if len(b) < end {
return false
}
return bytes.Equal(b[islogOffset:end], islogSignature)
}const SIGNATURE: &[u8] = &[0x32, 0x30, 0x32, 0x36, 0x2d];
const OFFSET: usize = 0;
fn is_log(bytes: &[u8]) -> bool {
bytes.get(OFFSET..OFFSET + SIGNATURE.len()) == Some(SIGNATURE)
}<?php
$signature = "\x32\x30\x32\x36\x2d";
$offset = 0;
function is_log(string $bytes): bool {
global $signature, $offset;
return substr($bytes, $offset, strlen($signature)) === $signature;
}Log File はデータ交換、インポート/エクスポート、パーサのテスト、検証ワークフローで使われます。エンコーディング・区切り文字・バージョン・コンテナ構造が実装の挙動を変えることがあります。
形式が判定できたからといって、信頼できない入力が安全とは限りません。パーサ例外・巨大ファイル・想定外のエンコーディング・外部参照を考慮してください。
11 個のサンプルで、先頭バイト判定・パーサのエラー・アップロード上限・ダウンロード挙動をテストできます。
Blue Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
01-blue-sky.log981d51a3269c3b7eecc126dc91cafbf5c6ec75c9dd4ae2a550946c8324f3d9acFlower Garden LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
02-flower-garden.log6a81a7f923919c8240626c0710455508fc2460e18c9a549d5539f38796eab3f8Navy Blue Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
03-navy-blue-sky.log5317ae9ea98d825c7c92aeed7e8aeb597408fc7b97c506a58592f681216cef46Nature of the Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
04-nature-sky.loga3f7e620081be4fca79a3617393a9cb6dcc70cf2730d38be3ad4ff57673e9b23Sky Landscape LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
05-sky-landscape.log476b956e6276ab49c2e95d1a2dc9a96eb8183ad94512b947cedef2d4a83aaed9Starry Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
06-starry-sky.log1c0aa7176033ae184031a522569a845f3172cc5e40440d5068e5d035425c5cd4Blue Night Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
07-blue-night-sky.log3127d5c1d54cf058860639d939114b24723496e4664f32d049571575626de3c3Hibiscus Flower LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
08-hibiscus-flower.logd6365998f74a2bb0141106ab8dc1433ece30013ba42fbcf118468fe671203380Arctic Sky LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
09-arctic-sky.log3562c18f5a5944750c85a708d5a057a84dbba7e760ae8742df482be2ad89a117Sunset Rays LOG is a Log File sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.
10-sunset-rays.log25471eafd854d7fba17b9b89f6ffe92119505657dbee7cc78a331706e3f92a44NASA Blue Marble LOG is a Log File sample based on NASA Image and Video Library. It can be used to test downloads, parsers, previews, and file type detection.
nasa-blue-marble-2012-east.log750093230bfb21458ee8db92863dab9485f2bc97f83214dd5c00a2b8b52c22e0Log File ファイルはバイトシグネチャ 32 30 32 36 2D ("2026-") で始まります。拡張子に頼らず、この先頭バイトを読み取って形式を判定してください。
Log File のMIMEタイプは text/plain です。
Log File ファイルは .log 拡張子を使います。拡張子は慣習にすぎず中身を保証しないため、シグネチャや構造のチェックと組み合わせてください。