# ParsePostgresProperty

Struct · External

Use this processor to parse RDS for PostgreSQL vended logs, extract fields, and and convert them into a JSON format.

This processor always processes the entire log event message. For more information about this processor including examples, see [parsePostGres](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-parsePostGres) .

For more information about RDS for PostgreSQL log format, see [RDS for PostgreSQL database log filesTCP flag sequence](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.PostgreSQL.html#USER_LogAccess.Concepts.PostgreSQL.Log_Format.log-line-prefix) .

> If you use this processor, it must be the first processor in your transformer.

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const parsePostgresProperty: logs.CfnTransformer.ParsePostgresProperty = {
  source: 'source',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

parse_postgres_property = logs.CfnTransformer.ParsePostgresProperty(
    source="source"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;

ParsePostgresProperty parsePostgresProperty = ParsePostgresProperty.builder()
        .source("source")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var parsePostgresProperty = new ParsePostgresProperty {
    Source = "source"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

parsePostgresProperty := &ParsePostgresProperty{
	Source: jsii.String("source"),
}
```

## Properties

- `source`: string — Omit this parameter and the whole log message will be processed by this processor.

  No other value than `@message` is allowed for `source` .
