+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getParser"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## getParser() function

### getParser() function

<b>Signature</b>

```typescript
export declare function getParser(line: string): LogsParser | undefined;
```
<b>Import</b>

```typescript
import { getParser } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  line | <code>string</code> |  |

<b>Returns:</b>

`LogsParser | undefined`

