Pattern Recognition

LangChain Hub prompt: scyyy/pattern-recognition

M
mindmapai
·May 3, 2026·
44 0 30
$4.99
Prompt
323 words

You are the master log analyzer and your task is to remove all header information such as timestamps, log levels, thread names, class names, host names, process names and IDs from the logs, leaving only the message portion.

Follow the steps below:

  1. First analyze and output what information is included in the header of the following logs.
  2. Give a regular expression to remove these headers, leaving only the message part of the log.
  3. Call the tool to verify that the regular expression is valid for all logs, and if it fails, it returns the examples of inapplicable logs.
  4. Summarize and output the reasons for the non-applicability based on the returned logs and modify the regular expression.

YOU NEED TO FOLLOW THE FOLLOWING RULES:

  1. use \s+ for ALL spaces and tabs, no spaces in regular expressions.
  2. use \d+ for all numbers, do NOT use fixed lengths.
  3. use [A-Za-z]+ for all strings.

Repeat the above steps until the regular expression is perfect.

TOOLS

Assistant can ask the user to use tools to look up information that may be helpful in answering the users original question. The tools the human can use are:

{tools}

RESPONSE FORMAT INSTRUCTIONS

When responding to me, please output a response in one of two formats:

Option 1: Use this if you want the human to use a tool. Markdown code snippet formatted in the following schema:

{{
    "action": string, \ The action to take. Must be one of {tool_names}
    "action_input": string \ The input to the action
}}

Option #2: Use this feature when the regular expression is perfect. Markdown code snippet formatted in the following schema:

⟨
    "action": "Final Answer",
    "action_input": string \ Output the perfect regular expression:
⟩

USER'S INPUT

Here is the user's input (remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else):

{input}

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("scyyy/pattern-recognition")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Productivity & Workflow

View All
Productivity & Workflow
Universal

This Is A Prompt For Retrieval Augmented Generation. It Is Useful For Chat, QA, Or Other Applications That Rely On Passing Context To An LLM.

This is a prompt for retrieval-augmented-generation. It is useful for chat, QA, or other applications that rely on passing context to an LLM.

P
promptalchemyFree
31,980,219 389,806
Productivity & Workflow
Universal

Calculate BMI, export exercise and eating schedule

Calculate BMI body metric with explaination, then build 2 plans: 1 for exercise 2 for daily nutrition meals. Add detail KPI, budget estimate and checklist for shopping, with new input below: 1. your gender, age, weight & height (with unit name): {male, 27, 65kg, 1m65} 2. additional health goals & condition: {not sick, using cigarette}

S
schemawriter$1.99
6,544 6,581
Productivity & Workflow
Universal

Gym Routine Creation - Work Out Regiment

Generate a custom gym routine for yourself. Be as specific as possible when describing your goals, experience, and equipment. The more information you provide, the better ChatGPT will be able to understand your needs.

A
aiblueprint$1.99
5,188 5,189
Productivity & Workflow
Universal

Personalized Workout Plan Creation

Are you in need of a virtual assistant to craft the perfect personalized workout plan for you? Meet ChatGPT, your AI-powered language model ready to create workout routines tailored to your fitness goals, preferences, and limitations. ChatGPT can assist anyone from beginners to advanced athletes in reaching their fitness objectives in a fun and customized manner. Begin by supplying ChatGPT with comprehensive information about your fitness goals, current fitness level, workout preferences, and any health conditions or injuries. The more details you provide, the better ChatGPT can adapt your workout plan to your specific needs and aspirations. Regularly communicate with ChatGPT to monitor your progress, receive feedback on your form and technique, and modify your workout plan as necessary. ChatGPT can also deliver motivational messages and encouragement to keep you on track and inspired. Feel free to ask ChatGPT for variations or modifications to your workout plan if you find certain

P
promptstack$1.99
5,091 5,102
Productivity & Workflow
Universal

Growth Mindset Guru

Have ChatGPT offer you heaps of encouraging Growth Mindset advice for your child, using creative analogies where possible.

S
schemawriterFree
1,537 1,546
Productivity & Workflow
ChatGPT

A Prompt Designed For Creating Question/answer Pairs That Can Be Used Downstream For Finetuning LLMs On Question/answering Over Documents.

A prompt designed for creating question/answer pairs that can be used downstream for finetuning LLMs on question/answering over documents.

A
aicanvas$1.99
3,257 20,905